[Asterisk-code-review] Fix crash in codec lpc10 when MALLOC DEBUG is enabled. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Fri May 8 10:45:25 CDT 2015


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/409

Change subject: Fix crash in codec_lpc10 when MALLOC_DEBUG is enabled.
......................................................................

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.

Change-Id: I74f63fd09fdeb673ee7753122c3bb4722ab6e1ac
---
M codecs/lpc10/lpcini.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/09/409/1

diff --git a/codecs/lpc10/lpcini.c b/codecs/lpc10/lpcini.c
index ebe229a..42c2331 100644
--- a/codecs/lpc10/lpcini.c
+++ b/codecs/lpc10/lpcini.c
@@ -34,7 +34,7 @@
 	-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

-- 
To view, visit https://gerrit.asterisk.org/409
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74f63fd09fdeb673ee7753122c3bb4722ab6e1ac
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-code-review mailing list