summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-03-04 17:56:44 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2019-03-05 09:21:07 +0100
commit22c87f0df8033e9a1995466e39b56935d696d38c (patch)
tree271d9767df65b25678d757cedb205c697dd83386
parent91a644d4a59db1c8a7c9e843b2a8d30aaf8f2d8c (diff)
downloadNetworkManager-bg/nmcli-agent-fixes.tar.gz
clients: fix GVariantBuilder memory leakbg/nmcli-agent-fixes
Fixes: acf86f68b33b14070d9b03a681fe94ffeead66ef
-rw-r--r--clients/common/nm-secret-agent-simple.c5
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];