Mercurial > hg > aarch64-jdk8u51-b16-hotspot
changeset 8155:9030d57ba158
8035938: Memory leak in JvmtiEnv::GetConstantPool
Reviewed-by: sspitsyn, dcubed
author | kevinw |
---|---|
date | Wed, 28 Jan 2015 21:43:06 +0000 |
parents | 5321d26956b2 |
children | 3edb9da05f94 |
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 Tue Mar 17 11:22:51 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; } }