diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-04 17:40:29 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-04 17:40:29 +0000 |
commit | 3df1541ef94756f2bedebb4efa244c70fca19119 (patch) | |
tree | edab62f404cb83f77493dc4684dc7461c9d64851 /apps | |
parent | 5d5f1c433a1dfed30f7dddf2bbeeb0d2da0172f8 (diff) |
Add a missing unlock. Extremely unlikely to ever matter, but it's needed.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@173392 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_chanspy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 18e4972a5..fa27d113f 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 */ |