Commit 7f6c0399 authored by Simon Marlow's avatar Simon Marlow
Browse files

FIX crash on exit with biographical profiling

Seems to be a bug introduced by code to free the memory allocated by
the heap profiler.
parent a7f3dd00
......@@ -523,11 +523,13 @@ endHeapProfiling(void)
}
#endif
{
if (doingLDVProfiling()) {
nat t;
for (t = 0; t <= era; t++) {
for (t = 1; t <= era; t++) {
freeEra( &censuses[t] );
}
} else {
freeEra( &censuses[0] );
}
stgFree(censuses);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment