From 50ffe4bbe4a700b64c663d97eef0162dd6036a4e Mon Sep 17 00:00:00 2001 From: file Date: Mon, 26 Nov 2007 17:36:45 +0000 Subject: Use ast_free to free memory, or else we shall implode if MALLOC_DEBUG is enabled. (closes issue #11347) Reported by: ys Patches: pbx.pbx_config.c.diff uploaded by ys (license 281) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89592 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 4a106b96c..6d0ec2ed8 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1472,7 +1472,7 @@ static int handle_context_add_extension_deprecated(int fd, int argc, char *argv[ if (!app_data) app_data=""; if (ast_add_extension(argv[4], argc == 6 ? 1 : 0, exten, iprior, NULL, cidmatch, app, - (void *)strdup(app_data), free, registrar)) { + (void *)strdup(app_data), ast_free, registrar)) { switch (errno) { case ENOMEM: ast_cli(fd, "Out of free memory\n"); @@ -1565,7 +1565,7 @@ static int handle_context_add_extension(int fd, int argc, char *argv[]) if (!app_data) app_data=""; if (ast_add_extension(argv[5], argc == 7 ? 1 : 0, exten, iprior, NULL, cidmatch, app, - (void *)strdup(app_data), free, registrar)) { + (void *)strdup(app_data), ast_free, registrar)) { switch (errno) { case ENOMEM: ast_cli(fd, "Out of free memory\n"); -- cgit v1.2.3