From 0b068a07debf08b9d83ae575c46ea017179da9f8 Mon Sep 17 00:00:00 2001 From: Alessandre Laguierce Date: Sat, 22 Mar 2025 19:06:12 +0100 Subject: [PATCH] feat: call clear_context in doubt --- src/thread/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/thread.c b/src/thread/thread.c index e730de2..a5535d1 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -217,7 +217,7 @@ void __attribute__((destructor)) clear_last_thread() TRACE("POST"); // Running is the initial main thread. Just free the entry. if (!WAS_ALLOCATED(running)) { - free(running); + clear_context(); exit(0); }