8035938: Memory leak in JvmtiEnv::GetConstantPool
authorkevinw
Fri, 16 Jan 2015 21:28:02 +0000
changeset 28625 cc1cdba85235
parent 28624 88972fd01f71
child 28626 579344aca043
8035938: Memory leak in JvmtiEnv::GetConstantPool Reviewed-by: sspitsyn, dcubed
hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.hpp
--- a/hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.hpp	Fri Jan 16 09:15:22 2015 +0100
+++ b/hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.hpp	Fri Jan 16 21:28:02 2015 +0000
@@ -68,11 +68,11 @@
 
   ~JvmtiConstantPoolReconstituter() {
     if (_symmap != NULL) {
-      os::free(_symmap);
+      delete _symmap;
       _symmap = NULL;
     }
     if (_classmap != NULL) {
-      os::free(_classmap);
+      delete _classmap;
       _classmap = NULL;
     }
   }