Add a missing unlock.
authorMark Michelson <mmichelson@digium.com>
Fri, 25 Jul 2008 13:52:52 +0000 (13:52 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 25 Jul 2008 13:52:52 +0000 (13:52 +0000)
Pointed out by Atis Lezdins in #asterisk-dev

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

apps/app_queue.c

index a68d35e..d0ac3ef 100644 (file)
@@ -4049,6 +4049,7 @@ static int set_member_paused(const char *queuename, const char *interface, const
                                if (failed) {
                                        ast_log(LOG_WARNING, "Failed %spausing realtime queue member %s:%s\n", (paused ? "" : "un"), q->name, interface);
                                        ao2_ref(mem, -1);
+                                       ao2_unlock(q);
                                        continue;
                                }       
                                found++;