[asterisk-bugs] [Asterisk 0017774]: [patch] SIP peers memory leak

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 5 14:54:28 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17774 
====================================================================== 
Reported By:                kkm
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17774
Category:                   Channels/chan_sip/General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     ready for review
Asterisk Version:           1.6.2.10 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-31 22:55 CDT
Last Modified:              2010-08-05 14:54 CDT
====================================================================== 
Summary:                    [patch] SIP peers memory leak
Description: 
There is a memory leak associated with sip peer creation and destruction,
because of a bug in reference counting. Patch attached.
====================================================================== 

---------------------------------------------------------------------- 
 (0125595) kkm (reporter) - 2010-08-05 14:54
 https://issues.asterisk.org/view.php?id=17774#c125595 
---------------------------------------------------------------------- 
As it is not very clear from looking at the patch what is going on, I
should describe the problem. As you see, a single line of code is moved
down. I moved it right below where the peer->addr is last used as a key to
remove the peer from peer_by_ip list: Zero it out too early, and the peer
is never removed. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-05 14:54 kkm            Note Added: 0125595                          
======================================================================




More information about the asterisk-bugs mailing list