From 82a3fa803277ed0ddc480befd7503e7f03660344 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 15 Oct 2013 19:57:06 +0000 Subject: [PATCH] chan_iax2: Fix channel left locked in off nominal code path. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@401016 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 1209088e13..7196e21ec9 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -10542,9 +10542,9 @@ static int socket_process_helper(struct iax2_thread *thread) 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");