From 9debae9783e99fc4e40ada0bd7ef787e868dea98 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Mon, 26 Nov 2018 14:04:23 +0100 Subject: [PATCH] 8214297: testbug : missing fclose in jvmti_aod.cpp Reviewed-by: coleenp, stuefe --- test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp b/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp index 98679eff799..df75829cbab 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp @@ -263,6 +263,7 @@ int nsk_jvmti_aod_redefineClass( error = jvmti->Allocate(size, &classBytes); if (error != JVMTI_ERROR_NONE) { NSK_DISPLAY1("Failed to create memory %s\n", TranslateError(error)); + fclose(bytecode); return NSK_FALSE; }