diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-26 17:38:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-26 17:38:57 +0000 |
commit | 6a8e5f1e6458ae967136875ad5a3a8e78d46e215 (patch) | |
tree | fb139842d1e069c78c1a3a7599d87826ea224a97 /pbx | |
parent | bbd5a3d02e93f5c3ab828f8d37fcfcf610563894 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@89593 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index a200dc663..8019c5ca4 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"); |