mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user