diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-25 22:31:57 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-25 22:31:57 +0000 |
commit | 52fb239a9a86356e307bca9c7f025175aa6bbc11 (patch) | |
tree | 0fee9809951a86efb2d921e39a7a2ae6df96e71e /main | |
parent | f50504070fcc1ad426c442d669540a25d5c4d403 (diff) |
After a frame duplication failure, unlock the channel before returning.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@231298 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 3c7d3b963..61a5a3608 100644 --- a/main/channel.c +++ b/main/channel.c @@ -922,6 +922,7 @@ static int __ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, in for (cur = fin; cur; cur = AST_LIST_NEXT(cur, frame_list)) { if (!(f = ast_frdup(cur))) { ast_frfree(AST_LIST_FIRST(&frames)); + ast_channel_unlock(chan); return -1; } |