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>
This commit is contained in:
Simon McVittie 2011-12-14 16:46:56 +00:00
parent a1bd6e0717
commit 6457677b7d

View File

@ -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;
}