projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57e4541
)
free the task *after* calling closeCond and closeMutex
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 31 Aug 2006 10:36:48 +0000
(10:36 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 31 Aug 2006 10:36:48 +0000
(10:36 +0000)
rts/Task.c
patch
|
blob
|
history
diff --git
a/rts/Task.c
b/rts/Task.c
index
7214725
..
11307a7
100644
(file)
--- a/
rts/Task.c
+++ b/
rts/Task.c
@@
-76,11
+76,11
@@
stopTaskManager (void)
ACQUIRE_LOCK(&sched_mutex);
for (task = task_free_list; task != NULL; task = next) {
next = task->next;
- stgFree(task);
#if defined(THREADED_RTS)
closeCondition(&task->cond);
closeMutex(&task->lock);
#endif
+ stgFree(task);
}
task_free_list = NULL;
RELEASE_LOCK(&sched_mutex);