2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Use non-exiting allocators in the parser (much of it already did).

This commit is contained in:
Todd C. Miller
2015-05-27 10:36:03 -06:00
parent 6b7be032af
commit 4da9e10971
6 changed files with 658 additions and 288 deletions

View File

@@ -157,7 +157,7 @@ fill_args(const char *s, int len, int addspace)
p = sudoerslval.command.args ?
realloc(sudoerslval.command.args, arg_size) : malloc(arg_size);
if (p == NULL) {
sudo_efree(sudoerslval.command.args);
free(sudoerslval.command.args);
sudo_warn(NULL);
sudoerserror(NULL);
debug_return_bool(false);