]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix another missing unref of member objects. This one was pointed out by Marta.
authorRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 20:49:34 +0000 (20:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 20:49:34 +0000 (20:49 +0000)
When building the outgoing list in try_calling(), a member reference is stored
in each outgoing entry.  However, when this list got destroyed, the reference
was not released.

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

apps/app_queue.c

index 03f15e1eec61eb6fda4fe0e1f3806519d7a73952..557861685f3c4a34fc3d9fdc141f291e2d90ca1e 100644 (file)
@@ -1566,6 +1566,8 @@ static void hangupcalls(struct callattempt *outgoing, struct ast_channel *except
                        ast_hangup(outgoing->chan);
                oo = outgoing;
                outgoing = outgoing->q_next;
+               if (oo->member)
+                       ao2_ref(oo->member, -1);
                free(oo);
        }
 }