With all the preparatory work in previous PRs, we can now call static destructors
repeatedly without issue. We need to do it here so that global variables allocated
during parsing are properly freed.
#include "env-util.h"
#include "fd-util.h"
#include "fuzz.h"
+#include "selinux-util.h"
+#include "static-destruct.h"
#include "stdio-util.h"
#include "strv.h"
#include "systemctl.h"
release_busses(); /* We open the bus for communication with logind.
* It needs to be closed to avoid apparent leaks. */
+
+ mac_selinux_finish();
+
+ /* Call static destructors to do global state cleanup. We do it here, and not in fuzz-main.c so that
+ * any global state is destoyed between fuzzer runs. */
+ static_destruct();
+
return 0;
}