X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FProfHeap.c;h=e8966ece3ed5e6eb5c072b2bbfb057bd32769429;hb=df58c2a53d37caf4f3b4d0b60a0466461bba7d19;hp=19abac77a80a36d765771e07dd341a977d9ccf9b;hpb=7f6c03992744898286d41529200508f775a77e04;p=ghc-hetmet.git 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();