From: Mark Michelson Date: Wed, 4 Feb 2009 17:41:02 +0000 (+0000) Subject: Merged revisions 173392 via svnmerge from X-Git-Tag: 1.6.2.0-beta1~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=668f9f4e311d8dc0eab14ce1276b111dfe6c8fb1;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@173393 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index f537875bc8..f21a051a3b 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -456,8 +456,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 */