src/sudo.c: call audit plugin close when result is a wait status

This commit is contained in:
Robert Manner
2020-02-10 11:00:16 +01:00
committed by Todd C. Miller
parent 0202dc67cc
commit 2781ec030b

View File

@@ -968,6 +968,7 @@ run_command(struct command_details *details)
#endif
policy_close(status, 0);
iolog_close(status, 0);
audit_close(SUDO_PLUGIN_WAIT_STATUS, cstat.val);
break;
default:
/* TODO: handle front end error conditions. */