diff options
author | bmd <bmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-03 20:02:20 +0000 |
---|---|---|
committer | bmd <bmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-03 20:02:20 +0000 |
commit | 0bf5a4bea510e1105e30eb899f929a7ad0e8141f (patch) | |
tree | dc169ad19035130edd04419d255d8138125ca699 /apps/app_directed_pickup.c | |
parent | 53cadeca5337ffd3bd739ac964e5d75d614fd0a0 (diff) |
fix a leaked channel lock (and future deadlock) when we try to pick up our own channel
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179903 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directed_pickup.c')
-rw-r--r-- | apps/app_directed_pickup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 640911317..605d11faf 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -163,8 +163,8 @@ static int pickup_by_channel(struct ast_channel *chan, char *pickup) /* Just check that we are not picking up the SAME as target */ if (chan->name != target->name && chan != target) { res = pickup_do(chan, target); - ast_channel_unlock(target); } + ast_channel_unlock(target); return res; } |