From 9a8b08d5e80b00adb7dd229c67947075c7c2a6be Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 2 Sep 2021 21:10:18 +0200 Subject: [PATCH] :bug: Fix shred exiting (la suite) --- src/vm/shreduler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vm/shreduler.c b/src/vm/shreduler.c index bc8e5668..17810b19 100644 --- a/src/vm/shreduler.c +++ b/src/vm/shreduler.c @@ -59,7 +59,8 @@ ANN void shreduler_remove(const Shreduler s, const VM_Shred out, tk->prev = tk->next = NULL; else { shreduler_erase(s, tk); - _release(out->info->me, out); + ME(out->info->me) = NULL; + release(out->info->me, out); } MUTEX_UNLOCK(s->mutex); } -- 2.43.0