changeset 7836:ec604d4bf5d6

8035938: Memory leak in JvmtiEnv::GetConstantPool Reviewed-by: sspitsyn, dcubed
author kevinw
date Fri, 16 Jan 2015 21:28:02 +0000
parents 4a14bb075882
children 5944bd86d487
files src/share/vm/prims/jvmtiClassFileReconstituter.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiClassFileReconstituter.hpp	Fri Jan 16 09:15:22 2015 +0100
+++ b/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;
     }
   }