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:
@@ -239,6 +239,7 @@ oom:
|
||||
while (i > 0) {
|
||||
free(command_info[i--]);
|
||||
}
|
||||
free(command_info);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user