src/hotspot/share/gc/parallel/spaceCounters.cpp
changeset 48157 7c4d43c26352
parent 47216 71c04702a3d5
child 58084 cddef3bde924
--- a/src/hotspot/share/gc/parallel/spaceCounters.cpp	Wed Nov 29 18:43:35 2017 -0800
+++ b/src/hotspot/share/gc/parallel/spaceCounters.cpp	Tue Nov 28 21:43:45 2017 +0100
@@ -24,6 +24,7 @@
 
 #include "precompiled.hpp"
 #include "gc/parallel/spaceCounters.hpp"
+#include "memory/allocation.inline.hpp"
 #include "memory/resourceArea.hpp"
 #include "utilities/macros.hpp"
 
@@ -63,3 +64,7 @@
                                      _object_space->capacity_in_bytes(), CHECK);
   }
 }
+
+SpaceCounters::~SpaceCounters() {
+  if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space);
+}