diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 18:57:56 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 18:57:56 +0000 |
commit | eb015e768e971e62ff2033817a67c3b6fc9e51f3 (patch) | |
tree | 501e2d1eb1bf1530614bd70aa8087849cc1da650 /res/ael | |
parent | a8a0589de9d71d5e95b7acb9b4b1a5cecd9448b0 (diff) |
Make the MALLOC_DEBUG output for free() useful again. After changing calls to
free to be ast_free, astmm said all calls to free were coming from utils.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82628 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/ael')
-rw-r--r-- | res/ael/pval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/ael/pval.c b/res/ael/pval.c index 4245d42db..3ff806b8b 100644 --- a/res/ael/pval.c +++ b/res/ael/pval.c @@ -49,6 +49,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #ifdef AAL_ARGCHECK #include "asterisk/argdesc.h" #endif +#include "asterisk/utils.h" extern int localized_pbx_load_module(void); @@ -3702,7 +3703,7 @@ void add_extensions(struct ael_extension *exten) pbx_substitute_variables_helper(NULL, exten->name, realext, sizeof(realext) - 1); if (exten->hints) { if (ast_add_extension2(exten->context, 0 /*no replace*/, realext, PRIORITY_HINT, NULL, exten->cidmatch, - exten->hints, NULL, ast_free, registrar)) { + exten->hints, NULL, ast_free_ptr, registrar)) { ast_log(LOG_WARNING, "Unable to add step at priority 'hint' of extension '%s'\n", exten->name); } @@ -3782,7 +3783,7 @@ void add_extensions(struct ael_extension *exten) label = 0; if (ast_add_extension2(exten->context, 0 /*no replace*/, realext, pr->priority_num, (label?label:NULL), exten->cidmatch, - app, strdup(appargs), ast_free, registrar)) { + app, strdup(appargs), ast_free_ptr, registrar)) { ast_log(LOG_WARNING, "Unable to add step at priority '%d' of extension '%s'\n", pr->priority_num, exten->name); } |