diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 18:17:12 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 18:17:12 +0000 |
commit | 81c2e78bd7d749b9354436774106ed9e4851eee9 (patch) | |
tree | 32ecbc678c505e292b075892555d735f11cc32a4 /apps/app_dial.c | |
parent | 05cd0108d7547964d16a9047c32e8976cfa6589b (diff) |
Fix potential memory leak in app_dial.c
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@223213 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 95a2e2440..a30b780bc 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1224,6 +1224,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); free(tmp); goto out; } |