command_allowed: plug memory leak on strdup() failure.
Coverity CID 249972
This commit is contained in:
@@ -448,6 +448,7 @@ oom:
|
|||||||
free(ncmnd);
|
free(ncmnd);
|
||||||
while (len > 0)
|
while (len > 0)
|
||||||
free(nargv[--len]);
|
free(nargv[--len]);
|
||||||
|
free(nargv);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
/* Keep socket open for ctor when we execute the command. */
|
/* Keep socket open for ctor when we execute the command. */
|
||||||
|
Reference in New Issue
Block a user