command_allowed: plug memory leak on strdup() failure.

Coverity CID 249972
This commit is contained in:
Todd C. Miller
2022-02-24 07:49:30 -07:00
parent b1fd1ec0fc
commit f793042bec

View File

@@ -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. */