diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-04 17:56:44 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-05 09:45:02 +0100 |
commit | 42304b34fdb7e7791e15830fee89baaa52c3d5ac (patch) | |
tree | 873e0b0b9b04648648b564ef03ef7d963698c796 /clients/common | |
parent | f1628ea6f1a279262f8be5c708293571a43c99a3 (diff) | |
download | NetworkManager-42304b34fdb7e7791e15830fee89baaa52c3d5ac.tar.gz |
clients: fix GVariantBuilder memory leak
Fixes: acf86f68b33b14070d9b03a681fe94ffeead66ef
(cherry picked from commit 22c87f0df8033e9a1995466e39b56935d696d38c)
Diffstat (limited to 'clients/common')
-rw-r--r-- | clients/common/nm-secret-agent-simple.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index a9a6bd2c96..cd3ce2eeea 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -1095,7 +1095,10 @@ nm_secret_agent_simple_response (NMSecretAgentSimple *self, gboolean has_vpn = FALSE; gboolean has_wg = FALSE; - settings = g_hash_table_new (nm_str_hash, g_str_equal); + settings = g_hash_table_new_full (nm_str_hash, + g_str_equal, + NULL, + (GDestroyNotify) g_variant_builder_unref); for (i = 0; i < secrets->len; i++) { SecretReal *secret = secrets->pdata[i]; |