From: Michael Jerris Date: Thu, 15 May 2014 12:27:39 +0000 (+0000) Subject: CID:1214231 don't leak when using invalid syntax X-Git-Tag: v1.4.4~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=622cd21009615f62e5a223c0c6da92157dee161d;p=thirdparty%2Ffreeswitch.git CID:1214231 don't leak when using invalid syntax --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index d5631cfbf9..3a87206957 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1420,6 +1420,7 @@ SWITCH_STANDARD_API(expand_function) if (zstr(mycmd)) { stream->write_function(stream, "-ERR No input\n"); + switch_safe_free(dup); return SWITCH_STATUS_SUCCESS; }