From 58cf8b69dac28616b3ba7a28c3c616eaf3021d0b Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Wed, 11 Mar 2009 04:06:44 +0000 Subject: Fix malloc debug macros to work properly with h323. The main problem here was that cstdlib was undefining free thereby causing the proper debug macros to not be used. ast_h323.cxx has been changed to call ast_free instead to avoid the issue. A few other issues were addressed: - There were a few instances of functions improperly passing ast_free instead of ast_free_ptr. - Some clean up was done to avoid the debug macros intentionally being redefined. (copied below from Kevin's commit, appreciate the help) - disable astmm.h from doing anything when STANDALONE is defined, which is used by the tools in the utils/ directory that use parts of Asterisk header files in hackish ways; also ensure that utils/extconf.c and utils/conf2ael.c are compiled with STANDALONE defined. (closes issue #13593) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181135 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/Makefile') diff --git a/utils/Makefile b/utils/Makefile index fb6f0d1e2..c9acb26e7 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -188,6 +188,9 @@ refcounter: refcounter.o md5.o hashtab.o utils.o strings.o sha1.o strcompat.o th refcounter.o: ASTCFLAGS+=-O0 -DSTANDALONE extconf.o: extconf.c +extconf.o: ASTCFLAGS+=-DSTANDALONE + +conf2ael.o: ASTCFLAGS+=-DSTANDALONE conf2ael: conf2ael.o ast_expr2f.o ast_expr2.o hashtab.o aelbison.o aelparse.o pbx_ael.o pval.o extconf.o strcompat.o -- cgit v1.2.3