diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 4990a4be8..4453dcfef 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -382,7 +382,7 @@ log_error(int flags, const char *fmt, ...) restore_perms(); if (!ISSET(flags, NO_EXIT)) { - cleanup(0); + plugin_cleanup(0); siglongjmp(error_jmp, 1); } } diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index be63fb6c9..af86e776b 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -660,7 +660,7 @@ sudoers_policy_invalidate(int remove) user_cmnd = "kill"; if (sigsetjmp(error_jmp, 1) == 0) { remove_timestamp(remove); - cleanup(0); + plugin_cleanup(0); } }