8035938: Memory leak in JvmtiEnv::GetConstantPool

Reviewed-by: sspitsyn, dcubed
This commit is contained in:
Kevin Walls 2015-01-16 21:28:02 +00:00
parent 781a793ed9
commit 3d112a8dc3

View File

@ -68,11 +68,11 @@ class JvmtiConstantPoolReconstituter : public StackObj {
~JvmtiConstantPoolReconstituter() {
if (_symmap != NULL) {
os::free(_symmap);
delete _symmap;
_symmap = NULL;
}
if (_classmap != NULL) {
os::free(_classmap);
delete _classmap;
_classmap = NULL;
}
}