[asterisk-bugs] [Asterisk 0013702]: [patch] Memory leak while trying to free a malloced memory with an ast_free() call instead of just free().

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 15 11:31:17 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13702 
====================================================================== 
Reported By:                eliel
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13702
Category:                   Codecs/codec_lpc10
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 149525 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-15 08:43 CDT
Last Modified:              2008-10-15 11:31 CDT
====================================================================== 
Summary:                    [patch] Memory leak while trying to free a malloced
memory with an ast_free() call instead of just free().
Description: 
The fix makes lpcini.c use ast_malloc() instead of malloc().
====================================================================== 

---------------------------------------------------------------------- 
 (0093726) svnbot (reporter) - 2008-10-15 11:31
 http://bugs.digium.com/view.php?id=13702#c93726 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 149637

U   trunk/codecs/lpc10/lpcini.c

------------------------------------------------------------------------
r149637 | tilghman | 2008-10-15 11:31:16 -0500 (Wed, 15 Oct 2008) | 8
lines

When using MALLOC_DEBUG, codec_lpc10 leaks memory, because it matches a
library
malloc() with an ast_free (which, of course, doesn't match up with known
allocated memory, so the free fails).
(closes issue http://bugs.digium.com/view.php?id=13702)
 Reported by: eliel
 Patches: 
       codec_lpc10_lpcini.c uploaded by eliel (license 64)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-15 11:31 svnbot         Checkin                                      
2008-10-15 11:31 svnbot         Note Added: 0093726                          
======================================================================




More information about the asterisk-bugs mailing list