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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 9 15:47:52 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17774 
====================================================================== 
Reported By:                kkm
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   17774
Category:                   Channels/chan_sip/General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.10 
JIRA:                       SWP-1995 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-07-31 22:55 CDT
Last Modified:              2010-08-09 15:47 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0125738) svnbot (reporter) - 2010-08-09 15:47
 https://issues.asterisk.org/view.php?id=17774#c125738 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 281432

_U  branches/1.8/
U   branches/1.8/channels/chan_sip.c

------------------------------------------------------------------------
r281432 | dvossel | 2010-08-09 15:47:52 -0500 (Mon, 09 Aug 2010) | 20
lines

Merged revisions 281430 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r281430 | dvossel | 2010-08-09 15:46:50 -0500 (Mon, 09 Aug 2010) | 13
lines
  
  fixes SIP peers memory leak
  
  We zeroed out the peer's addr before it was removed from the
  peers_by_ip container.  This made it impossible to be removed
  from the container as the addr is the key used by the container
  to find the peer.
  
  (closes issue https://issues.asterisk.org/view.php?id=17774)
  Reported by: kkm
  Patches:
        017774-sip-peer-leak-1.6.2.10.diff uploaded by kkm (license 888)
        017774-sip-peer-leak-1.8.diff uploaded by kkm (license 888)
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=281432 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-09 15:47 svnbot         Checkin                                      
2010-08-09 15:47 svnbot         Note Added: 0125738                          
======================================================================




More information about the asterisk-bugs mailing list