From: Mark Michelson Date: Fri, 9 Oct 2009 18:17:12 +0000 (+0000) Subject: Fix potential memory leak in app_dial.c X-Git-Tag: 1.4.27-rc3~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9317f6cbe390aa9b540c9370271693071ad7ea1;p=thirdparty%2Fasterisk.git Fix potential memory leak in app_dial.c git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@223213 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 95a2e24403..a30b780bca 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; }