diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 18:29:42 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 18:29:42 +0000 |
commit | 215da4be5548917dc325a66bb32665a5f0fc4172 (patch) | |
tree | 40f4d09a27e496465a3c1e2a2b5db3e0b6c01ee6 /apps/app_dial.c | |
parent | 06ca811209fd4a879f919730c6fb2023bc08275b (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.2@223257 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 15cc2dcb2..0cf934515 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1670,6 +1670,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; } |