Merged revisions 89286 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 15 Nov 2007 14:55:35 +0000 (14:55 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 15 Nov 2007 14:55:35 +0000 (14:55 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89286 | mmichelson | 2007-11-15 08:54:10 -0600 (Thu, 15 Nov 2007) | 4 lines

Adding a missing mutex unlock.

(closes issue 11256, reported and patched by ys)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89287 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 791e839..d9959a2 100644 (file)
@@ -2834,6 +2834,7 @@ static struct mansession *find_session(unsigned long ident)
                ast_mutex_lock(&s->__lock);
                if (s->managerid == ident && !s->needdestroy) {
                        ast_atomic_fetchadd_int(&s->inuse, 1);
+                       ast_mutex_unlock(&s->__lock);
                        break;
                }
                ast_mutex_unlock(&s->__lock);