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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@173395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2009-02-04 17:42:41 +00:00
parent 36d745dcbf
commit 0017b5cf52

View File

@@ -340,8 +340,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 */