8381933: Possible memory leak in src/hotspot/share/gc/shenandoah/shenandoahHeapRegionCounters.cpp

Reviewed-by: kdnilsen, wkemper
This commit is contained in:
Patrick Fontanilla 2026-04-16 17:49:05 +00:00 committed by Kelvin Nilsen
parent 74c3d426b0
commit d6a255d74c

View File

@ -78,6 +78,7 @@ ShenandoahHeapRegionCounters::ShenandoahHeapRegionCounters() :
ShenandoahHeapRegionCounters::~ShenandoahHeapRegionCounters() {
if (_name_space != nullptr) FREE_C_HEAP_ARRAY(char, _name_space);
if (_regions_data != nullptr) FREE_C_HEAP_ARRAY(PerfVariable*, _regions_data);
}
void ShenandoahHeapRegionCounters::write_snapshot(PerfLongVariable** regions,