up-config: set filename variable with g_autofree

This commit is contained in:
Kate Hsuan 2024-04-09 15:35:08 +08:00
parent 8cb9fb0231
commit 469346b6bf

View file

@ -97,7 +97,7 @@ up_config_init (UpConfig *config)
gboolean allow_risky_critical_action = FALSE;
g_autofree gchar *critical_action = NULL;
GError *error = NULL;
gchar *filename;
g_autofree gchar *filename = NULL;
gboolean ret;
config->priv = up_config_get_instance_private (config);
@ -137,8 +137,6 @@ up_config_init (UpConfig *config)
" risky settings.");
}
}
g_free (filename);
}
/**