summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-07-12 11:25:57 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-12 13:14:03 +0000
commit0afef8a38ad0054fc3423827b9759be73ccf5be7 (patch)
treea7859095756c965f786d4cb81c8f3b89cbe1aa30
parentd8c5d9c3b9a4ae194a1b8e69b41ad1609746371c (diff)
downloadflatpak-0afef8a38ad0054fc3423827b9759be73ccf5be7.tar.gz
Fix a memory leak when calling flatpak_build_file()
Closes: #1898 Approved by: mwleeds
-rw-r--r--common/flatpak-utils.c2
1 files changed, 1 insertions, 1 deletions
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);
}