[asterisk-commits] file: branch 12 r404332 - /branches/12/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 19 06:17:58 CST 2013


Author: file
Date: Thu Dec 19 06:17:52 2013
New Revision: 404332

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404332
Log:
channel: Add a missing ast_channel_unlock when allocating a Surrogate channel.

Modified:
    branches/12/main/channel.c

Modified: branches/12/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/channel.c?view=diff&rev=404332&r1=404331&r2=404332
==============================================================================
--- branches/12/main/channel.c (original)
+++ branches/12/main/channel.c Thu Dec 19 06:17:52 2013
@@ -10355,6 +10355,8 @@
 	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;




More information about the asterisk-commits mailing list