From 5882467c0df5c919aacd76292687064734b0ac0e Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 21 Oct 2021 16:59:29 +0200 Subject: unit: fix memory leak --- src/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit.c b/src/unit.c index 8f33a10..e52d979 100644 --- a/src/unit.c +++ b/src/unit.c @@ -49,7 +49,7 @@ unit_new(const gchar *name, unit->priv->to_function = g_strdup(to_function); symbol_names = g_strsplit(symbols, ",", 0); for (i = 0; symbol_names[i]; i++) - unit->priv->symbols = g_list_append(unit->priv->symbols, g_strdup(symbol_names[i])); + unit->priv->symbols = g_list_append(unit->priv->symbols, symbol_names[i]); g_free(symbol_names); return unit; -- cgit v1.2.1