When using MALLOC_DEBUG, codec_lpc10 leaks memory, because it matches a library
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 15 Oct 2008 16:41:54 +0000 (16:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 15 Oct 2008 16:41:54 +0000 (16:41 +0000)
malloc() with an ast_free (which, of course, doesn't match up with known
allocated memory, so the free fails).
(closes issue #13702)
 Reported by: eliel
 Patches:
       codec_lpc10_lpcini.c uploaded by eliel (license 64)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/lpc10/lpcini.c

index ebe229a..42c2331 100644 (file)
@@ -34,7 +34,7 @@ Some OSS fixes and a few lpc changes to make it actually work
        -lf2c -lm   (in that order)
 */
 
-#include <stdlib.h>
+#include "asterisk.h"
 #include "f2c.h"
 
 #ifdef P_R_O_T_O_T_Y_P_E_S