freeProfiling1() needs to be after endProfiling()
authorSimon Marlow <simonmar@microsoft.com>
Fri, 24 Aug 2007 13:19:25 +0000 (13:19 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 24 Aug 2007 13:19:25 +0000 (13:19 +0000)
Fixes another crash with biographical profiling.

rts/RtsStartup.c

index 951b07f..5104721 100644 (file)
@@ -478,9 +478,8 @@ hs_exit_(rtsBool wait_foreign)
     reportCCSProfiling();
 #endif
 
-    freeProfiling1();
-
     endProfiling();
+    freeProfiling1();
 
 #ifdef PROFILING
     // Originally, this was in report_ccs_profiling().  Now, retainer