changeset 7189:62c4bd276cbe

8035938: Memory leak in JvmtiEnv::GetConstantPool Reviewed-by: sspitsyn, dcubed
author kevinw
date Wed, 28 Jan 2015 21:43:06 +0000
parents 9773891321c4
children 928e1994ad43
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	Thu Apr 23 09:10:15 2015 -0700
+++ b/src/share/vm/prims/jvmtiClassFileReconstituter.hpp	Wed Jan 28 21:43:06 2015 +0000
@@ -68,11 +68,11 @@
 
   ~JvmtiConstantPoolReconstituter() {
     if (_symmap != NULL) {
-      os::free(_symmap, mtClass);
+      delete _symmap;
       _symmap = NULL;
     }
     if (_classmap != NULL) {
-      os::free(_classmap, mtClass);
+      delete _classmap;
       _classmap = NULL;
     }
   }