2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 14:55:12 +00:00

build_command_info: free command_info on failure.

Once upon a time, command_info was a stack variable, now it is
dynamically allocated.  Coverity CID 299987.
This commit is contained in:
Todd C. Miller
2022-11-22 17:26:24 -07:00
parent eb4ae10ab4
commit 46d286947e

View File

@@ -239,6 +239,7 @@ oom:
while (i > 0) {
free(command_info[i--]);
}
free(command_info);
return NULL;
}