[glib/glib-2-28] g_key_file_get_string_list: don't leak the pieces on error
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] g_key_file_get_string_list: don't leak the pieces on error
- Date: Mon, 16 Jan 2012 18:32:58 +0000 (UTC)
commit f9e865a29d8f216b153d482a0c948fcb40b82625
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Wed Dec 14 16:46:56 2011 +0000
g_key_file_get_string_list: don't leak the pieces on error
Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi linux intel com>
glib/gkeyfile.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
index 115372d..54f2484 100644
--- a/glib/gkeyfile.c
+++ b/glib/gkeyfile.c
@@ -1570,6 +1570,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]