sudoers_cleanup: run the garbage collector at the end

This commit is contained in:
Todd C. Miller
2023-03-10 15:03:44 -07:00
parent c09aabecdc
commit cd5cd45336
2 changed files with 4 additions and 1 deletions

View File

@@ -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;