From: Simon Marlow Date: Wed, 9 Aug 2006 14:12:25 +0000 (+0000) Subject: fix bug in task freeing X-Git-Tag: Before_FC_branch_merge~247 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d54ca9c56b628c9676286af15a995bc3ce791456;p=ghc-hetmet.git fix bug in task freeing --- 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); }