[asterisk-bugs] [Asterisk 0013331]: [patch] chan_sip is leaking in build_peer

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 23 11:01:21 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13331 
====================================================================== 
Reported By:                sergee
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   13331
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 138147 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-18 03:26 CDT
Last Modified:              2008-10-23 11:01 CDT
====================================================================== 
Summary:                    [patch] chan_sip is leaking in build_peer
Description: 
I'm using RealTime setup with 1.6.0 branch. Asterisk runs out of memory in
a 2 days.
====================================================================== 

---------------------------------------------------------------------- 
 (0094204) svnbot (reporter) - 2008-10-23 11:01
 http://bugs.digium.com/view.php?id=13331#c94204 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 151765

U   branches/1.6.0/channels/chan_sip.c

------------------------------------------------------------------------
r151765 | russell | 2008-10-23 11:01:19 -0500 (Thu, 23 Oct 2008) | 12
lines

Fix some memory leaks.  These issues are 1.6.0 specific.
 - Freeing the peer got accidentally removed from the peer's destructor. 
It is
   still needed for astobj, but not for astobj2.
 - Fix some places that called find_user or find_peer, but did not release
the
   reference that was returned.

(closes issue http://bugs.digium.com/view.php?id=13331)
Reported by: sergee
Patches:
      chan_sip-3leaks-16-r151244.diff uploaded by sergee (license 138)
Tested by: sergee

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-23 11:01 svnbot         Checkin                                      
2008-10-23 11:01 svnbot         Note Added: 0094204                          
======================================================================




More information about the asterisk-bugs mailing list