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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 18 14:01:47 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 14:01 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.

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

---------------------------------------------------------------------- 
 (0116843) svnbot (reporter) - 2010-01-18 14:01
 https://issues.asterisk.org/view.php?id=16554#c116843 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 241017

_U  branches/1.6.0/
U   branches/1.6.0/main/config.c

------------------------------------------------------------------------
r241017 | seanbright | 2010-01-18 14:01:46 -0600 (Mon, 18 Jan 2010) | 26
lines

Merged revisions 241016 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r241016 | seanbright | 2010-01-18 14:57:52 -0500 (Mon, 18 Jan 2010) | 19
lines
  
  Merged revisions 241015 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r241015 | seanbright | 2010-01-18 14:54:19 -0500 (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=241017 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-18 14:01 svnbot         Checkin                                      
2010-01-18 14:01 svnbot         Note Added: 0116843                          
======================================================================




More information about the asterisk-bugs mailing list