mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 07:13:20 +00:00
channel: Add a missing ast_channel_unlock when allocating a Surrogate channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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_readformat(yanked_chan), &my_vars.readformat);
|
||||||
ast_format_copy(ast_channel_writeformat(yanked_chan), &my_vars.writeformat);
|
ast_format_copy(ast_channel_writeformat(yanked_chan), &my_vars.writeformat);
|
||||||
|
|
||||||
|
ast_channel_unlock(yanked_chan);
|
||||||
|
|
||||||
if (ast_channel_move(yanked_chan, yankee)) {
|
if (ast_channel_move(yanked_chan, yankee)) {
|
||||||
ast_hangup(yanked_chan);
|
ast_hangup(yanked_chan);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user