SIP registry ref count error
authorDavid Vossel <dvossel@digium.com>
Wed, 17 Jun 2009 15:20:26 +0000 (15:20 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 17 Jun 2009 15:20:26 +0000 (15:20 +0000)
commit9bf67151c9b2ab78ed74c8629d97b31533599e7d
tree7a2085d2303424530fe724a350319440a20e04ff
parent940accbd994996747b2a653e9faa7e4e566210e8
SIP registry ref count error

During a sip reload, the list of sip_registry objects are
supposed to be traversed, unlinked, and destroyed, but
destruction never takes place due to a ref counting error.
This causes a memory leak when registry items are removed
from sip.conf and reloaded.  While the registries are removed
from the global list, they are not removed from the scheduler.
Because of this, SIP register attempts continue to be sent
out for the item even though it may no longer be in the .conf.

(closes issue #15295)
Reported by: amorsen

Review: https://reviewboard.asterisk.org/r/282/

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