[asterisk-bugs] [Asterisk 0011347]: [patch] dialplan remove extension make coredump if asterisk compiled with MALLOC_DEBUG options

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Nov 26 11:34:17 CST 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11347 
====================================================================== 
Reported By:                ys
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   11347
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 89526 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-22-2007 07:11 CST
Last Modified:              11-26-2007 11:34 CST
====================================================================== 
Summary:                    [patch] dialplan remove extension make coredump if
asterisk compiled with MALLOC_DEBUG options
Description: 

pbx/pbx_config.c: In function ast_add_extension() used free() function.
That free appdata memory, if extension are destroyed by destroy_exten()
function.

To solve this, i replace free to ast_free in ast_add_extension().

This was found in trunk, but exist in branch-1.4 too.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 11-26-07 11:34  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 89592

U   branches/1.4/pbx/pbx_config.c

------------------------------------------------------------------------
r89592 | file | 2007-11-26 11:34:16 -0600 (Mon, 26 Nov 2007) | 6 lines

Use ast_free to free memory, or else we shall implode if MALLOC_DEBUG is
enabled.
(closes issue http://bugs.digium.com/view.php?id=11347)
Reported by: ys
Patches:
      pbx.pbx_config.c.diff uploaded by ys (license 281)

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-26-07 11:34  svnbot         Note Added: 0074338                          
11-26-07 11:34  svnbot         Status                   new => assigned     
11-26-07 11:34  svnbot         Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list