[glib] 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] g_key_file_get_string_list: don't leak the pieces on error
- Date: Wed, 14 Dec 2011 18:10:49 +0000 (UTC)
commit 6457677b7db236ab580bdf546221f1e8d2102c80
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 e8eb861..713721f 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]