diff options
author | Joshua Colp <jcolp@digium.com> | 2013-12-19 12:18:52 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-12-19 12:18:52 +0000 |
commit | eb235ad05f26ae41600de6e33d4806f64beda893 (patch) | |
tree | bbf391a10336ce36e0ae9b8c7e40507880cc8e56 /main/channel.c | |
parent | 1370d405594ff731b9034decec0af9e256b29f1c (diff) |
channel: Add a missing ast_channel_unlock when allocating a Surrogate channel.
........
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
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 669b81529..b4ee0c3b7 100644 --- a/main/channel.c +++ b/main/channel.c @@ -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; |