Summary: | ASTERISK-12899: [patch] Memory leak while trying to free a malloced memory with an ast_free() call instead of just free(). | ||
Reporter: | Eliel Sardanons (eliel) | Labels: | |
Date Opened: | 2008-10-15 08:43:09 | Date Closed: | 2008-10-15 11:31:18 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Codecs/codec_lpc10 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) codec_lpc10_lpcini.c | |
Description: | The fix makes lpcini.c use ast_malloc() instead of malloc(). | ||
Comments: | By: Eliel Sardanons (eliel) 2008-10-15 08:46:02 Sorry, I forgot to added this message to explain better whats going on: WARNING: Freeing unused memory at 0xb29e7da8, in lpc10_destroy of codec_lpc10.c, line 222 By: Digium Subversion (svnbot) 2008-10-15 11:31:16 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 ASTERISK-12899) Reported by: eliel Patches: codec_lpc10_lpcini.c uploaded by eliel (license 64) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=149637 |