From 5f0631389fc61403eeb67c36a667603e49e3212d Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 29 Apr 2003 17:38:46 +0000 Subject: Make pbx config work with astmm git-svn-id: http://svn.digium.com/svn/asterisk/trunk@935 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_config.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pbx') diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 45359fcdd..d077b51c3 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -26,6 +26,15 @@ #include "../asterisk.h" #include "../astconf.h" +#ifdef __AST_DEBUG_MALLOC +static void FREE(void *ptr) +{ + free(ptr); +} +#else +#define FREE free +#endif + static char *dtext = "Text Extension Configuration"; static char *config = "extensions.conf"; static char *registrar = "pbx_config"; @@ -1568,7 +1577,7 @@ static int pbx_load_module(void) if (!data) data=""; - if (ast_add_extension2(con, 0, ext, ipri, cidmatch, appl, strdup(data), free, registrar)) { + if (ast_add_extension2(con, 0, ext, ipri, cidmatch, appl, strdup(data), FREE, registrar)) { ast_log(LOG_WARNING, "Unable to register extension at line %d\n", v->lineno); } free(tc); -- cgit v1.2.3