Skip to content

rts/ProfHeap: Ensure that Censuses are freed

Ben Gamari requested to merge wip/free-censuses into master

Previously when not LDV profiling we would repeatedly reinitialise censuses[0] with initEra. This failed to free the Arena and HashTable from the old census, resulting in a memory leak.

Also includes a small refactoring to allocate only as many Census's as we actually need.

Merge request reports