]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix several unreleased mutex locks that cause problem with processing calls
authorIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 5 Mar 2013 03:46:33 +0000 (03:46 +0000)
committerIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 5 Mar 2013 03:46:33 +0000 (03:46 +0000)
(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

channels/chan_unistim.c

index f8ed7d6701f94a7518234eb411ac3ab6b0a68497..fa0a9cdc04716e54aa1d3f5120c7630b012a69c0 100644 (file)
@@ -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;
        }