bridge: avoid leaking channel during blond transfer
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 19 Dec 2014 17:27:25 +0000 (17:27 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 19 Dec 2014 17:27:25 +0000 (17:27 +0000)
commit07d10123838af4cac65f0378ab96a46d5d5421e4
tree925f537dfd6ce57eeb963f9e9db9d16b29d74511
parent2cbfafa8c1594eee65842a0c598bc36aa34f704f
bridge: avoid leaking channel during blond transfer

After a blond transfer (start attended and hang up)
to a destination that also hangs up without answer,
the Local;1 channel was leaked and would show up on
core show channels.  This was happening because the
attended state blond_nonfinal_enter() resetting the
props->transfer_target to null while releasing it's
own reference, which would later prevent props from
releasing another reference during destruction. The
change made here is simply to not assign the target
to NULL.

ASTERISK-24513 #close
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/4262/
........

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

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

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