]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
After a frame duplication failure, unlock the channel before returning.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 25 Nov 2009 22:31:57 +0000 (22:31 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 25 Nov 2009 22:31:57 +0000 (22:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@231298 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 3c7d3b9636706e81fb1a3a8746433cae0fc00d0e..61a5a36088f480925f33e5e4671aa7d3010a2f4f 100644 (file)
@@ -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;
                }