keyfile: fix memleak in keyfile reader's read_array_of_uint()

Fixes: 9559a7a260
(cherry picked from commit 8239edbb9b)
(cherry picked from commit 8a281bf7b4)
This commit is contained in:
Thomas Haller 2016-12-21 20:19:13 +01:00
parent 3807e2b3bc
commit 92f057ca1d

View file

@ -110,7 +110,7 @@ read_array_of_uint (GKeyFile *file,
GArray *array = NULL;
gsize length;
int i;
gint *tmp;
gs_free int *tmp = NULL;
tmp = nm_keyfile_plugin_kf_get_integer_list (file, nm_setting_get_name (setting), key, &length, NULL);
array = g_array_sized_new (FALSE, FALSE, sizeof (guint32), length);