8338248: PartialArrayStateAllocator::Impl leaks Arena array

Reviewed-by: kbarrett, shade
This commit is contained in:
Zhengyu Gu 2024-08-12 23:00:04 +00:00
parent 5079c38ddf
commit e70c9bccaa

View File

@ -100,6 +100,7 @@ PartialArrayStateAllocator::Impl::~Impl() {
for (uint i = 0; i < _num_workers; ++i) {
_arenas[i].~Arena();
}
FREE_C_HEAP_ARRAY(Arena*, _arenas);
}
PartialArrayState* PartialArrayStateAllocator::Impl::allocate(uint worker_id,