2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00

Plugin a memory leak in intercept mode.

This commit is contained in:
Todd C. Miller 2023-03-10 15:00:20 -07:00
parent d5a7844423
commit c09aabecdc

View File

@ -187,8 +187,10 @@ sudoers_reinit_defaults(void)
sudoers_error_hook = logger;
/* No need to check the admin flag file multiple times. */
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED))
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED)) {
free(def_admin_flag);
def_admin_flag = NULL;
}
debug_return_bool(true);
}