feat: call clear_context in doubt

This commit is contained in:
Alessandre Laguierce 2025-03-22 19:06:12 +01:00
parent 42cd0976ce
commit 0b068a07de

View File

@ -217,7 +217,7 @@ void __attribute__((destructor)) clear_last_thread()
TRACE("POST"); TRACE("POST");
// Running is the initial main thread. Just free the entry. // Running is the initial main thread. Just free the entry.
if (!WAS_ALLOCATED(running)) { if (!WAS_ALLOCATED(running)) {
free(running); clear_context();
exit(0); exit(0);
} }