summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2018-07-10 19:34:04 +0200
committerMatthew Leeds <matthew.leeds@endlessm.com>2018-07-10 19:34:04 +0200
commitbb59dc134dac2bcb572c2894587aa9251ca718f5 (patch)
treeb338f5cd02222c85565864ad61573bade60d1661
parent7decfe39ae6e5ad888133ac6aa87061e1820e788 (diff)
downloadflatpak-bb59dc134dac2bcb572c2894587aa9251ca718f5.tar.gz
lib: Fix a small memory leak
-rw-r--r--common/flatpak-installation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c
index edc489ba..a8368fd3 100644
--- a/common/flatpak-installation.c
+++ b/common/flatpak-installation.c
@@ -1003,7 +1003,7 @@ flatpak_installation_list_installed_refs_for_update (FlatpakInstallation *self,
collection_id = flatpak_dir_get_remote_collection_id (dir, remote_name);
if (collection_id != NULL)
{
- const char *ref = flatpak_ref_format_ref (FLATPAK_REF (installed_ref));
+ g_autofree char *ref = flatpak_ref_format_ref (FLATPAK_REF (installed_ref));
OstreeCollectionRef *c_r = ostree_collection_ref_new (collection_id, ref);
g_ptr_array_add (collection_refs, c_r);
}