From d54ca9c56b628c9676286af15a995bc3ce791456 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 9 Aug 2006 14:12:25 +0000 Subject: [PATCH] fix bug in task freeing --- rts/Task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Task.c b/rts/Task.c index 57497e4..dcfa5b5 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -74,7 +74,7 @@ stopTaskManager (void) tasksRunning); ACQUIRE_LOCK(&sched_mutex); - for (task = task_free_list; task != NULL; next) { + for (task = task_free_list; task != NULL; task = next) { next = task->next; stgFree(task); } -- 1.7.10.4