From: Mark Michelson Date: Wed, 4 Feb 2009 17:40:29 +0000 (+0000) Subject: Add a missing unlock. Extremely unlikely to ever matter, but it's needed. X-Git-Tag: 1.4.24-rc1~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fed7d2308bfbce59a8b59db9949618d7401dbef5;p=thirdparty%2Fasterisk.git Add a missing unlock. Extremely unlikely to ever matter, but it's needed. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@173392 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 18e4972a5e..fa27d113f6 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -252,8 +252,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 */