[asterisk-bugs] [Asterisk 0016554]: [patch] Huge memory leak

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 18 13:54:21 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16554 
====================================================================== 
Reported By:                mav3rick
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   16554
Category:                   Applications/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.30
Asterisk Version:           1.4.28 
JIRA:                       SWP-643 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-06 03:16 CST
Last Modified:              2010-01-18 13:54 CST
====================================================================== 
Summary:                    [patch] Huge memory leak
Description: 
I detected a memory leak on all my Asterisk servers. 

After 1 day, Asterisk is using 100+ meg.

I recompiled with MALLOC_DEBUG on DONT_OPTIMIZE. 
See dump of memory summary and memory allocations.

====================================================================== 

---------------------------------------------------------------------- 
 (0116840) svnbot (reporter) - 2010-01-18 13:54
 https://issues.asterisk.org/view.php?id=16554#c116840 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 241015

U   branches/1.4/main/config.c

------------------------------------------------------------------------
r241015 | seanbright | 2010-01-18 13:54:19 -0600 (Mon, 18 Jan 2010) | 12
lines

Plug a memory leak when reading configs with their comments.

While reading through configuration files with the intent of returning
their
full contents (comments specifically) we allocated some memory and then
forgot
to free it.  This doesn't fix 16554 but clears up a leak I had in the lab.

(issue https://issues.asterisk.org/view.php?id=16554)
Reported by: mav3rick
Patches:
      issue16554_20100118.patch uploaded by seanbright (license 71)
Tested by: seanbright

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-18 13:54 svnbot         Note Added: 0116840                          
======================================================================




More information about the asterisk-bugs mailing list