From: Corey Farrell Date: Fri, 8 May 2015 15:30:24 +0000 (-0400) Subject: Fix crash in codec_lpc10 when MALLOC_DEBUG is enabled. X-Git-Tag: 14.0.0-beta1~971^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93b3a22d6217e28059a92f9d24fce055f8b3f3c;p=thirdparty%2Fasterisk.git Fix crash in codec_lpc10 when MALLOC_DEBUG is enabled. This switches codecs/lpc10/lpcini.c back to including "asterisk.h" instead of . lpcini.c allocates memory that is freed by codec_lpc10.c, so it is important to use MALLOC_DEBUG allocator. Added #define WRAP_LIBC_MALLOC to the start of the source to prevent runtime symbol link error's. Change-Id: I74f63fd09fdeb673ee7753122c3bb4722ab6e1ac --- diff --git a/codecs/lpc10/lpcini.c b/codecs/lpc10/lpcini.c index ebe229a5cf..8efb640680 100644 --- a/codecs/lpc10/lpcini.c +++ b/codecs/lpc10/lpcini.c @@ -34,7 +34,8 @@ Some OSS fixes and a few lpc changes to make it actually work -lf2c -lm (in that order) */ -#include +#define WRAP_LIBC_MALLOC +#include "asterisk.h" #include "f2c.h" #ifdef P_R_O_T_O_T_Y_P_E_S