diff --git a/src/config_file.c b/src/config_file.c index 9783e60be..634ced385 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -159,7 +159,7 @@ gboolean load_config(const gchar *filename, RaucConfig **config, GError **error) g_autoptr(RaucConfig) c = g_new0(RaucConfig, 1); gboolean res = FALSE; g_autoptr(GKeyFile) key_file = NULL; - gchar **groups; + g_auto(GStrv) groups = NULL; gsize group_count; GList *slotlist = NULL; GHashTable *slots = NULL; @@ -741,8 +741,6 @@ gboolean load_config(const gchar *filename, RaucConfig **config, GError **error) goto free; } - g_strfreev(groups); - res = TRUE; free: if (res)