changeset 17313:251eb9ac75dd

8161740: [parfait] Memory leak in Java_sun_awt_UNIXToolkit_load_1gtk_1icon of awt_UNIXToolkit.c:132 Reviewed-by: serb, ssadetsky
author vadim
date Tue, 26 Jul 2016 14:19:15 +0300
parents 42f457587791
children f7cb006b293a
files src/java.desktop/unix/native/libawt_xawt/awt/awt_UNIXToolkit.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/unix/native/libawt_xawt/awt/awt_UNIXToolkit.c	Tue Jul 26 14:18:43 2016 +0300
+++ b/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);