mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -1000,7 +1000,7 @@ static char *handle_cli_dialplan_add_extension(struct ast_cli_entry *e, int cmd,
|
|||||||
if (!app_data)
|
if (!app_data)
|
||||||
app_data="";
|
app_data="";
|
||||||
if (ast_add_extension(a->argv[5], a->argc == 7 ? 1 : 0, exten, iprior, NULL, cidmatch, app,
|
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) {
|
switch (errno) {
|
||||||
case ENOMEM:
|
case ENOMEM:
|
||||||
ast_cli(a->fd, "Out of free memory\n");
|
ast_cli(a->fd, "Out of free memory\n");
|
||||||
|
Reference in New Issue
Block a user