In sudoers_policy_close() call sudoers_cleanup() instead of sudo_user_free().

If we didn't call sudoers_policy_main() due to an early error there
may be more things to clean up.
This commit is contained in:
Todd C. Miller
2021-02-16 10:37:04 -07:00
parent ecdf732adc
commit df91e15b82
2 changed files with 11 additions and 10 deletions

View File

@@ -1612,6 +1612,7 @@ sudoers_cleanup(void)
nss->close(nss);
}
snl = NULL;
init_parser(NULL, false, false);
}
if (def_group_plugin)
group_plugin_unload();