gio-querymodules: fix memory leak

Spotted thanks to ASAN.

https://bugzilla.gnome.org/show_bug.cgi?id=778207

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-02-05 19:28:21 +04:00
parent aebcb15a9b
commit 73c5e927d5

View File

@ -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);
}