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; }