aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 17:42:01 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 17:42:01 +0000
commit7101e017d23cfa0bb2f3239349bb0ed393ecc921 (patch)
tree8dcd1a30d4fb38cfded8a182e98a780a4e157560 /apps
parent53accad5e4c64813cdc69276470d63dab4c1baf8 (diff)
Merged revisions 173393 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r173393 | mmichelson | 2009-02-04 11:41:02 -0600 (Wed, 04 Feb 2009) | 11 lines Merged revisions 173392 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r173392 | mmichelson | 2009-02-04 11:40:29 -0600 (Wed, 04 Feb 2009) | 3 lines Add a missing unlock. Extremely unlikely to ever matter, but it's needed. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@173394 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_chanspy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 54960281f..c9dc6f541 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -274,8 +274,10 @@ static int channel_spy(struct ast_channel *chan, struct chanspy_ds *spyee_chansp
}
ast_mutex_unlock(&spyee_chanspy_ds->lock);
- if (!spyee)
+ if (!spyee) {
+ ast_channel_unlock(spyee);
return 0;
+ }
/* We now hold the channel lock on spyee */