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…
Reference in New Issue