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:
parent
d5a7844423
commit
c09aabecdc
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user