sudoers_cleanup: run the garbage collector at the end
This commit is contained in:
@@ -1119,7 +1119,7 @@ sudoers_policy_close(int exit_status, int error_code)
|
||||
/* Free sudoers sources, sudo_user and passwd/group caches. */
|
||||
sudoers_cleanup();
|
||||
|
||||
/* command_info is freed by the g/c code. */
|
||||
/* command_info was freed by the g/c code. */
|
||||
command_info = NULL;
|
||||
|
||||
/* Free error message passed back to front-end, if any. */
|
||||
|
@@ -1872,6 +1872,9 @@ sudoers_cleanup(void)
|
||||
sudo_freegrcache();
|
||||
canon_path_free_cache();
|
||||
|
||||
/* Run garbage collector. */
|
||||
sudoers_gc_run();
|
||||
|
||||
/* Clear globals */
|
||||
list_pw = NULL;
|
||||
saved_argv = NULL;
|
||||
|
Reference in New Issue
Block a user