8161740: [parfait] Memory leak in Java_sun_awt_UNIXToolkit_load_1gtk_1icon of awt_UNIXToolkit.c:132
Reviewed-by: serb, ssadetsky
--- a/jdk/src/java.desktop/unix/native/libawt_xawt/awt/awt_UNIXToolkit.c Tue Jul 26 14:18:43 2016 +0300
+++ b/jdk/src/java.desktop/unix/native/libawt_xawt/awt/awt_UNIXToolkit.c Tue Jul 26 14:19:15 2016 +0300
@@ -129,6 +129,7 @@
return JNI_FALSE;
}
if (!init_method(env, this) ) {
+ free(filename_str);
return JNI_FALSE;
}
(*env)->GetStringUTFRegion(env, filename, 0, len, filename_str);