mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-30 21:02:46 +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)) {
|
if (zstr(mycmd)) {
|
||||||
stream->write_function(stream, "-ERR No input\n");
|
stream->write_function(stream, "-ERR No input\n");
|
||||||
|
switch_safe_free(dup);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user