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:
@@ -1612,6 +1612,7 @@ sudoers_cleanup(void)
|
||||
nss->close(nss);
|
||||
}
|
||||
snl = NULL;
|
||||
init_parser(NULL, false, false);
|
||||
}
|
||||
if (def_group_plugin)
|
||||
group_plugin_unload();
|
||||
|
Reference in New Issue
Block a user