mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
a1bd6e0717
commit
6457677b7d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user