Commit d54ca9c5 authored by Simon Marlow's avatar Simon Marlow
Browse files

fix bug in task freeing

parent 118d0ea5
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment