Fix reference leaks involving SIP Replaces transfers
authorKinsey Moore <kmoore@digium.com>
Thu, 26 Apr 2012 13:31:16 +0000 (13:31 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 26 Apr 2012 13:31:16 +0000 (13:31 +0000)
commit7bf6a01cfaa01cb653ec1a43499b4573b292f9de
treeb7aa52a5ce486afcbe2a76fa21dcd9c694add810
parent5746e0d2ac01174c94a59b06f2906fc960deae16
Fix reference leaks involving SIP Replaces transfers

The reference held for SIP blind transfers using the Replaces header in an
INVITE was never freed on success and also failed to be freed in some error
conditions.  This caused a file descriptor leak since the RTP structures in use
at the time of the transfer were never freed.  This reference leak and another
relating to subscriptions in the same code path have now been corrected.

(closes issue ASTERISK-19579)
........

Merged revisions 363986 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 363987 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@363988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c