From 622cd21009615f62e5a223c0c6da92157dee161d Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 15 May 2014 12:27:39 +0000 Subject: [PATCH] CID:1214231 don't leak when using invalid syntax --- src/mod/applications/mod_commands/mod_commands.c | 1 + 1 file changed, 1 insertion(+) 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; }