From 9910b7d9a7b4c4126b623636a5b874162a70b38e Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 26 Nov 2007 17:38:57 +0000 Subject: [PATCH] Merged revisions 89592 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89592 | file | 2007-11-26 13:36:45 -0400 (Mon, 26 Nov 2007) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@89593 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index a200dc663f..8019c5ca4c 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1000,7 +1000,7 @@ static char *handle_cli_dialplan_add_extension(struct ast_cli_entry *e, int cmd, if (!app_data) app_data=""; if (ast_add_extension(a->argv[5], a->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(a->fd, "Out of free memory\n");