8214297: testbug : missing fclose in jvmti_aod.cpp
authormbaesken
Mon, 26 Nov 2018 14:04:23 +0100
changeset 52696 b80549fdb52f
parent 52695 99eb43bc3595
child 52697 605878cd4009
8214297: testbug : missing fclose in jvmti_aod.cpp Reviewed-by: coleenp, stuefe
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp
--- a/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp	Tue Nov 27 13:02:28 2018 +0100
+++ b/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp	Mon Nov 26 14:04:23 2018 +0100
@@ -263,6 +263,7 @@
             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;
             }