libc: reorder destructor and fflush in exit

This commit is contained in:
Bananymous 2025-05-05 19:16:52 +03:00
parent eb79c6c47c
commit c08c63f420
1 changed files with 1 additions and 1 deletions

View File

@ -34,8 +34,8 @@ void abort(void)
void exit(int status)
{
fflush(nullptr);
__cxa_finalize(nullptr);
fflush(nullptr);
_exit(status);
ASSERT_NOT_REACHED();
}