diff options
author | Thomas Haller <thaller@redhat.com> | 2016-12-21 20:19:13 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-01-05 12:33:21 +0100 |
commit | 8a281bf7b40c25c67e49661d69b38401d64b03c9 (patch) | |
tree | dbf3457defc6b156d93cfd2209bd8203d0174aa2 | |
parent | 479a64a5b7b59a97dfb8d88c886943742a29d9d6 (diff) |
keyfile: fix memleak in keyfile reader's read_array_of_uint()
Fixes: 9559a7a26021efa7ef49681b93a3b3bd4eadcef6
(cherry picked from commit 8239edbb9b903dc802957763a8bab04480a491e1)
-rw-r--r-- | libnm-core/nm-keyfile-reader.c | 2 |
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); |