From fd282a1ab8acfcf6a7ed8a5d47ca528a96c5cc54 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 11 Oct 2018 18:03:15 -0400 Subject: [PATCH] installation: Don't return freed memory flatpak_installation_load_app_overrides was returning freed memory. Oops. Closes: #2239 Approved by: alexlarsson --- common/flatpak-installation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c index 09605677..6a0a6499 100644 --- a/common/flatpak-installation.c +++ b/common/flatpak-installation.c @@ -1512,7 +1512,7 @@ flatpak_installation_load_app_overrides (FlatpakInstallation *self, GError **error) { g_autoptr(FlatpakDir) dir = NULL; - g_autofree char *metadata_contents = NULL; + char *metadata_contents; gsize metadata_size; dir = flatpak_installation_get_dir (self, error);