Fix a memory leak associated with queues.
authorMark Michelson <mmichelson@digium.com>
Thu, 19 Mar 2009 18:10:34 +0000 (18:10 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 19 Mar 2009 18:10:34 +0000 (18:10 +0000)
commitb52d2dae2e90583f7b0e9467b81cdad9de95b93b
treea301dc1e0517d21efd0444a88a305a959657bf3a
parent4210f17abbedd6ea383054b1832d3b03ac0b98d1
Fix a memory leak associated with queues.

For every attempt that app_queue made to place an outbound call to a queue member,
we would allocate a queue_end_bridge structure. When the bridge for the call had
completed, we would free the structure. Unfortunately not all call attempts actually
end up bridged to a member, so we need to be more selective of when to allocate
the structure. With this change, the allocation occurs in an area where we can
guarantee that the call will be bridged.

(closes issue #14680)
Reported by: caspy
Patches:
      14680.patch uploaded by mmichelson (license 60)
Tested by: caspy

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@183244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c