projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3704620
)
Don't freeProfiling1 until after calling reportCCSProfiling
author
Ian Lynagh
<igloo@earth.li>
Fri, 17 Aug 2007 15:02:05 +0000
(15:02 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Fri, 17 Aug 2007 15:02:05 +0000
(15:02 +0000)
Fixes usage of free'd memory
rts/RtsStartup.c
patch
|
blob
|
history
diff --git
a/rts/RtsStartup.c
b/rts/RtsStartup.c
index
4f5b1c7
..
951b07f
100644
(file)
--- a/
rts/RtsStartup.c
+++ b/
rts/RtsStartup.c
@@
-463,8
+463,6
@@
hs_exit_(rtsBool wait_foreign)
/* free the stable pointer table */
exitStablePtrTable();
- freeProfiling1();
-
#if defined(DEBUG)
/* free the thread label table */
freeThreadLabelTable();
@@
-480,6
+478,8
@@
hs_exit_(rtsBool wait_foreign)
reportCCSProfiling();
#endif
+ freeProfiling1();
+
endProfiling();
#ifdef PROFILING