diff options
author | Thomas Haller <thaller@redhat.com> | 2018-12-30 00:09:34 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-12-30 11:11:10 +0100 |
commit | 7e97fe76e71c4b334df269107d6f7b9707fa3b48 (patch) | |
tree | 4410f7af45e94d9d42b3188f5e754da3b47a8dac | |
parent | 2d268b4da280848cbec6eb86c8e688d807f8df3b (diff) | |
download | NetworkManager-7e97fe76e71c4b334df269107d6f7b9707fa3b48.tar.gz |
keyfile: fix memleak in nm_keyfile_read()
Fixes: 04df4edf48e55478d0f360ea566f5f398aa76268
-rw-r--r-- | libnm-core/nm-keyfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-core/nm-keyfile.c b/libnm-core/nm-keyfile.c index 6ce5bb5388..161b2fd501 100644 --- a/libnm-core/nm-keyfile.c +++ b/libnm-core/nm-keyfile.c @@ -2877,7 +2877,7 @@ nm_keyfile_read (GKeyFile *keyfile, gs_unref_object NMConnection *connection = NULL; NMSettingConnection *s_con; NMSetting *setting; - char **groups; + gs_strfreev char **groups = NULL; gsize length; gsize i; gboolean vpn_secrets = FALSE; @@ -2913,7 +2913,6 @@ nm_keyfile_read (GKeyFile *keyfile, if (setting) nm_connection_add_setting (connection, setting); } - g_strfreev (groups); s_con = nm_connection_get_setting_connection (connection); if (!s_con) { |