From: Igor Goncharovskiy Date: Tue, 5 Mar 2013 03:46:33 +0000 (+0000) Subject: Fix several unreleased mutex locks that cause problem with processing calls X-Git-Tag: 1.8.22.0-rc1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6008772ca3fc5ace7fa65c0d5c0bad1aa5ab3bc9;p=thirdparty%2Fasterisk.git Fix several unreleased mutex locks that cause problem with processing calls (Closes issue ASTERISK-21119) Reported by: Daniel Bohling Tested by: Daniel Bohling git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@382409 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index f8ed7d6701..fa0a9cdc04 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -4072,6 +4072,7 @@ static int unistim_fixup(struct ast_channel *oldchan, struct ast_channel *newcha if (p->owner != oldchan) { ast_log(LOG_WARNING, "old channel wasn't %s (%p) but was %s (%p)\n", oldchan->name, oldchan, p->owner->name, p->owner); + ast_mutex_unlock(&p->lock); return -1; }