diff --git a/apps/app_dial.c b/apps/app_dial.c index 1d57a6a91e..4dc007ea45 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; }