From: Tilghman Lesher Date: Wed, 15 Oct 2008 16:41:54 +0000 (+0000) Subject: When using MALLOC_DEBUG, codec_lpc10 leaks memory, because it matches a library X-Git-Tag: 1.6.2.0-beta1~1103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8775172aa50d880d353111c96ae3c8549d2b7cc;p=thirdparty%2Fasterisk.git 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 #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 --- diff --git a/codecs/lpc10/lpcini.c b/codecs/lpc10/lpcini.c index ebe229a5cf..42c2331958 100644 --- a/codecs/lpc10/lpcini.c +++ b/codecs/lpc10/lpcini.c @@ -34,7 +34,7 @@ Some OSS fixes and a few lpc changes to make it actually work -lf2c -lm (in that order) */ -#include +#include "asterisk.h" #include "f2c.h" #ifdef P_R_O_T_O_T_Y_P_E_S