]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 89592 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Nov 2007 17:38:57 +0000 (17:38 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 26 Nov 2007 17:38:57 +0000 (17:38 +0000)
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

index a200dc663fb8781232deb226ffedb970c21790ca..8019c5ca4c210b9324e5ce10626efebbf5966810 100644 (file)
@@ -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");