]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
channel: Add a missing ast_channel_unlock when allocating a Surrogate channel.
authorJoshua Colp <jcolp@digium.com>
Thu, 19 Dec 2013 12:18:52 +0000 (12:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 19 Dec 2013 12:18:52 +0000 (12:18 +0000)
........

Merged revisions 404332 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 669b81529b19a25066d4741b61869674946c0416..b4ee0c3b7b35bf2069221cc3858ee3cf40bdb795 100644 (file)
@@ -10355,6 +10355,8 @@ struct ast_channel *ast_channel_yank(struct ast_channel *yankee)
        ast_format_copy(ast_channel_readformat(yanked_chan), &my_vars.readformat);
        ast_format_copy(ast_channel_writeformat(yanked_chan), &my_vars.writeformat);
 
+       ast_channel_unlock(yanked_chan);
+
        if (ast_channel_move(yanked_chan, yankee)) {
                ast_hangup(yanked_chan);
                return NULL;