From 244eb2ef4390d620b7027b6b8d7ae8d6a0f87300 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 12 Jul 2018 11:25:57 +0100 Subject: Fix a memory leak when calling flatpak_build_file() --- common/flatpak-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index 65dd7816..9c31853d 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -1822,7 +1822,7 @@ flatpak_build_file_va (GFile *base, while ((arg = va_arg (args, const gchar *))) { - GFile *child = g_file_resolve_relative_path (res, arg); + g_autoptr(GFile) child = g_file_resolve_relative_path (res, arg); g_set_object (&res, child); } -- cgit v1.2.1