aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}