changeset 52719:b80549fdb52f

8214297: testbug : missing fclose in jvmti_aod.cpp Reviewed-by: coleenp, stuefe
author mbaesken
date Mon, 26 Nov 2018 14:04:23 +0100
parents 99eb43bc3595
children 605878cd4009
files test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/aod/jvmti_aod.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }