summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-09-11 20:50:42 +0000
committerRussell Bryant <russell@russellbryant.com>2007-09-11 20:50:42 +0000
commitc0bcb9f2180fc75878b5173fb69f92a6ab159f79 (patch)
tree43c2539801377e8f4b3e326aecdf94bce0f0347c /apps
parentc6b6a67364fb234e75ebb86edd012abc8f109d6e (diff)
Merged revisions 82263 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82263 | russell | 2007-09-11 15:49:34 -0500 (Tue, 11 Sep 2007) | 5 lines 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/trunk@82264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 976c46473..a12c867a1 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1664,6 +1664,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);
ast_free(oo);
}
}