From 73c5e927d5cd6d8b083f971852830f6d84ca478d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 5 Feb 2017 19:28:21 +0400 Subject: [PATCH] gio-querymodules: fix memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spotted thanks to ASAN. https://bugzilla.gnome.org/show_bug.cgi?id=778207 Signed-off-by: Marc-André Lureau --- gio/gio-querymodules.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/gio-querymodules.c b/gio/gio-querymodules.c index 30c9c8850..2a658483e 100644 --- a/gio/gio-querymodules.c +++ b/gio/gio-querymodules.c @@ -119,6 +119,7 @@ query_dir (const char *dirname) g_printerr ("Unable to unlink %s: %s\n", cachename, g_strerror (errno)); } + g_free (cachename); g_string_free (data, TRUE); }