glib2/glib2-bnc402256-filename-leak.diff

16 lines
367 B
Diff

bnc402256 - Fix leak inside g_local_file_get_parse_name()
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index eec7480..7f16823 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -431,6 +431,8 @@ g_local_file_get_parse_name (GFile *file)
g_free (utf8_filename);
utf8_filename = NULL;
}
+
+ g_free (roundtripped_filename);
}
}