changeset 5842:fcf1fd67e40e

8035938: Memory leak in JvmtiEnv::GetConstantPool Reviewed-by: sspitsyn, dcubed
author kevinw
date Mon, 19 Jan 2015 11:48:54 +0000
parents e1babc3f8e75
children d496bd71dc12
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 Jan 22 16:10:11 2015 -0800
+++ b/src/share/vm/prims/jvmtiClassFileReconstituter.hpp	Mon Jan 19 11:48:54 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;
     }
   }