diff options
author | Richard Hughes <richard@hughsie.com> | 2018-07-12 11:25:57 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2018-07-12 11:25:57 +0100 |
commit | 244eb2ef4390d620b7027b6b8d7ae8d6a0f87300 (patch) | |
tree | fdb1239afbff9d13fd901cc641eaf26772a12c55 | |
parent | 188fecd2d93c2d03693c3cbbf9b18bb70407fa59 (diff) | |
download | flatpak-wip/hughsie/trivial-memleaks2.tar.gz |
Fix a memory leak when calling flatpak_build_file()wip/hughsie/trivial-memleaks2
-rw-r--r-- | common/flatpak-utils.c | 2 |
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); } |