]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 223215 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Fri, 9 Oct 2009 18:20:13 +0000 (18:20 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 9 Oct 2009 18:20:13 +0000 (18:20 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223215 | mmichelson | 2009-10-09 13:17:34 -0500 (Fri, 09 Oct 2009) | 9 lines

  Recorded merge of revisions 223213 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r223213 | mmichelson | 2009-10-09 13:17:12 -0500 (Fri, 09 Oct 2009) | 3 lines

    Fix potential memory leak in app_dial.c
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@223226 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index d5593bb5d10d3b63c847bc841b71ae13aea8bdca..54082d54814fdfe116e4ab0e29b06bec399cc7b2 100644 (file)
@@ -1448,6 +1448,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
                        datastore->inheritance = DATASTORE_INHERIT_FOREVER;
 
                        if (!(dialed_interfaces = ast_calloc(1, sizeof(*dialed_interfaces)))) {
+                               ast_channel_datastore_free(datastore);
                                ast_free(tmp);
                                goto out;
                        }