summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-12-21 20:19:13 +0100
committerThomas Haller <thaller@redhat.com>2017-01-05 12:33:21 +0100
commit8a281bf7b40c25c67e49661d69b38401d64b03c9 (patch)
treedbf3457defc6b156d93cfd2209bd8203d0174aa2
parent479a64a5b7b59a97dfb8d88c886943742a29d9d6 (diff)
keyfile: fix memleak in keyfile reader's read_array_of_uint()
-rw-r--r--libnm-core/nm-keyfile-reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-keyfile-reader.c b/libnm-core/nm-keyfile-reader.c
index 16f0c225b..b3ac8f33e 100644
--- a/libnm-core/nm-keyfile-reader.c
+++ b/libnm-core/nm-keyfile-reader.c
@@ -111,7 +111,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);