X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FRtsStartup.c;h=951b07fab2ced78a87622f8d0d8b2de1ddbb9edb;hp=4f5b1c77a320cd2ccbc3270417f81d91a9a27228;hb=0d88de0b114a391712bc117d42928b49fba4d66a;hpb=eb5791fe867f6441d270344298678f45ed4a75e4 diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 4f5b1c7..951b07f 100644 --- 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