Commit 61af839f authored by Simon Marlow's avatar Simon Marlow
Browse files

another fix for -hb: we appear to be freeing the hash table and arena twice

parent 23e5985c
...@@ -343,8 +343,12 @@ initEra(Census *census) ...@@ -343,8 +343,12 @@ initEra(Census *census)
STATIC_INLINE void STATIC_INLINE void
freeEra(Census *census) freeEra(Census *census)
{ {
arenaFree(census->arena); if (RtsFlags.ProfFlags.bioSelector != NULL)
freeHashTable(census->hash, NULL); // when bioSelector==NULL, these are freed in heapCensus()
{
arenaFree(census->arena);
freeHashTable(census->hash, NULL);
}
} }
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
......
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