bridge: avoid leaking channel during blond transfer pt2
authorScott Griepentrog <sgriepentrog@digium.com>
Mon, 5 Jan 2015 22:50:32 +0000 (22:50 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Mon, 5 Jan 2015 22:50:32 +0000 (22:50 +0000)
commit0b8fbf9238bc352cec4b38078854fa1d138d6a12
treeea5db34407231cc835bceafdf9ee9513275fb923
parente0bd2ca104fa92695b1b259438812d1b296f7aef
bridge: avoid leaking channel during blond transfer pt2

A blond transfer to a failed destination, when followed
by a recall attempt, lead to a leak of the reference to
the destination channel.  In addition to correcting the
regression on the previous attempt (r429826) this fixes
the leak and two additional reference leaks on failures
of bridge_import.

ASTERISK-24513 #close
Review: https://reviewboard.asterisk.org/r/4302/
........

Merged revisions 430199 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 430200 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/bridge_basic.c