mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 10:26:51 +00:00
CID:1214231 don't leak when using invalid syntax
This commit is contained in:
parent
bdbefdcc48
commit
622cd21009
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user