[asterisk-bugs] [Asterisk 0017432]: Memory Leak : main/manager.c

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 1 08:53:01 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17432 
====================================================================== 
Reported By:                fantiyu
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17432
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.7 
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-06-01 05:25 CDT
Last Modified:              2010-06-01 08:53 CDT
====================================================================== 
Summary:                    Memory Leak : main/manager.c
Description: 
found memory leak yesterday. asterisk-1.6.2.7(released)

main/mamager.c, line 3154, function: do_message:
m.headers[m.hdrcount++] = ast_strdupa(header_buf);

the memory alloced by ast_strdupa are never released, we must release
those before the function returned.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017234 [patch] Memory leak in manager.c
====================================================================== 

---------------------------------------------------------------------- 
 (0122681) pabelanger (manager) - 2010-06-01 08:53
 https://issues.asterisk.org/view.php?id=17432#c122681 
---------------------------------------------------------------------- 
Marking as related to https://issues.asterisk.org/view.php?id=17234, only
because there is an existing patch
there.  Please download and test it. 

Also, for the future, attach patches to the tracker.  Do not paste them as
comments. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-01 08:53 pabelanger     Note Added: 0122681                          
======================================================================




More information about the asterisk-bugs mailing list