X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FProfHeap.c;h=e8966ece3ed5e6eb5c072b2bbfb057bd32769429;hp=19abac77a80a36d765771e07dd341a977d9ccf9b;hb=a60af39758448f92d8eaa3b62072f9adcdbbee9d;hpb=e97c8fa852931d189ef5ae295aca09fb80a479e0 diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c index 19abac7..e8966ec 100644 --- a/rts/ProfHeap.c +++ b/rts/ProfHeap.c @@ -523,6 +523,7 @@ endHeapProfiling(void) } #endif +#ifdef PROFILING if (doingLDVProfiling()) { nat t; for (t = 1; t <= era; t++) { @@ -531,6 +532,10 @@ endHeapProfiling(void) } else { freeEra( &censuses[0] ); } +#else + freeEra( &censuses[0] ); +#endif + stgFree(censuses); seconds = mut_user_time();