From 56b7a100bc9f93fa88a665e87c7ea57b5cf0c8ce Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 11 Sep 2007 20:49:34 +0000 Subject: [PATCH] Fix another missing unref of member objects. This one was pointed out by Marta. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index 03f15e1eec..557861685f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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); } }