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
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

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