Fix call command memory leak

The module command arguments were never freed.
This commit is contained in:
Markus Mäkelä
2020-03-09 07:38:53 +02:00
parent 3da2580f09
commit 6f45545e09

View File

@ -873,6 +873,7 @@ HttpResponse cb_modulecmd(const HttpRequest& request)
if (args) if (args)
{ {
rval = modulecmd_call_command(cmd, args, &output); rval = modulecmd_call_command(cmd, args, &output);
modulecmd_arg_free(args);
} }
for (int i = 0; i < n_opts; i++) for (int i = 0; i < n_opts; i++)