aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-09 18:25:19 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-09 18:25:19 +0000
commit0a5fe9635abb23f14dc111ec715f2b446413dd45 (patch)
treeda843b6499d584f6dc97383f4fad007f1121ed40 /apps
parent3a48a5a137bd99d4e1781da7068d7360620802ba (diff)
Merged revisions 223215 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.6.1@223241 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_dial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 1d57a6a91..4dc007ea4 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1477,6 +1477,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_datastore_free(datastore);
ast_free(tmp);
goto out;
}