[util] Fix leaks
diff --git a/util/options.cc b/util/options.cc index 3a9496b..d2a3846 100644 --- a/util/options.cc +++ b/util/options.cc
@@ -178,7 +178,7 @@ GError **error G_GNUC_UNUSED) { shape_options_t *shape_opts = (shape_options_t *) data; - g_free (shape_opts->shapers); + g_strfreev (shape_opts->shapers); shape_opts->shapers = g_strsplit (arg, ",", 0); return true; }
diff --git a/util/options.hh b/util/options.hh index 2485230..5d25d9e 100644 --- a/util/options.hh +++ b/util/options.hh
@@ -155,7 +155,7 @@ ~shape_options_t (void) { free (features); - g_free (shapers); + g_strfreev (shapers); } void add_options (option_parser_t *parser);