From: Russell Bryant Date: Tue, 11 Sep 2007 20:49:34 +0000 (+0000) Subject: Fix another missing unref of member objects. This one was pointed out by Marta. X-Git-Tag: 1.4.12~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56b7a100bc9f93fa88a665e87c7ea57b5cf0c8ce;p=thirdparty%2Fasterisk.git 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 --- 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); } }