[svn-commits] rmudgett: branch 11 r401016 - /branches/11/channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 15 14:57:08 CDT 2013


Author: rmudgett
Date: Tue Oct 15 14:57:06 2013
New Revision: 401016

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=401016
Log:
chan_iax2: Fix channel left locked in off nominal code path.

Modified:
    branches/11/channels/chan_iax2.c

Modified: branches/11/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_iax2.c?view=diff&rev=401016&r1=401015&r2=401016
==============================================================================
--- branches/11/channels/chan_iax2.c (original)
+++ branches/11/channels/chan_iax2.c Tue Oct 15 14:57:06 2013
@@ -10542,9 +10542,9 @@
 										ast_set_read_format(iaxs[fr->callno]->owner, ast_channel_readformat(iaxs[fr->callno]->owner));
 									}
 									ast_format_cap_copy(native, orignative);
-									ast_channel_unlock(iaxs[fr->callno]->owner);
 									orignative = ast_format_cap_destroy(orignative);
 								}
+								ast_channel_unlock(iaxs[fr->callno]->owner);
 							}
 						} else {
 							ast_debug(1, "Neat, somebody took away the channel at a magical time but i found it!\n");




More information about the svn-commits mailing list