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
This commit is contained in:
Russell Bryant 2007-09-11 20:50:42 +00:00
parent c6b6a67364
commit c0bcb9f218
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}