summaryrefslogtreecommitdiff
path: root/codecs
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-05-08 11:30:24 -0400
committerCorey Farrell <git@cfware.com>2015-05-08 13:29:50 -0400
commitf93b3a22d6217e28059a92f9d24fce055f8b3f3c (patch)
treed077c0eb5c3e2c16c74c0da47f533f938e751668 /codecs
parentcf637f2510d5e69855d62a4c3306094abfcbb68c (diff)
Fix crash in codec_lpc10 when MALLOC_DEBUG is enabled.
This switches codecs/lpc10/lpcini.c back to including "asterisk.h" instead of <stdlib.h>. 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
Diffstat (limited to 'codecs')
-rw-r--r--codecs/lpc10/lpcini.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/codecs/lpc10/lpcini.c b/codecs/lpc10/lpcini.c
index ebe229a5c..8efb64068 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 <stdlib.h>
+#define WRAP_LIBC_MALLOC
+#include "asterisk.h"
#include "f2c.h"
#ifdef P_R_O_T_O_T_Y_P_E_S