FlatpakInstance: plug key file mem leak

`g_key_file_new` is called both in the decl section and later on, overwriting
the previous one and losing the pointer. Fix this
This commit is contained in:
Eva M 2026-09-27 01:41:50 -07:00
parent 95057812ae
commit aaddc2752a

View file

@ -1095,7 +1095,7 @@ load_local_ref_fiber (LoadLocalRefData *data)
if (g_str_has_suffix (uri, ".flatpakref"))
{
const char *resolved_uri = NULL;
g_autoptr (GKeyFile) key_file = g_key_file_new ();
g_autoptr (GKeyFile) key_file = NULL;
g_autofree char *name = NULL;
if (g_str_has_prefix (uri, "flatpak+https"))