From 6457677b7db236ab580bdf546221f1e8d2102c80 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 14 Dec 2011 16:46:56 +0000 Subject: [PATCH] g_key_file_get_string_list: don't leak the pieces on error Signed-off-by: Simon McVittie Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113 Reviewed-by: Emmanuele Bassi --- glib/gkeyfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index e8eb861ab..713721fa7 100644 --- a/glib/gkeyfile.c +++ b/glib/gkeyfile.c @@ -1970,6 +1970,7 @@ g_key_file_get_string_list (GKeyFile *key_file, else g_propagate_error (error, key_file_error); + g_slist_free_full (pieces, g_free); return NULL; } -- 2.34.1