mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 14:20:17 +01:00
clients: fix GVariantBuilder memory leak
Fixes:acf86f68b3(cherry picked from commit22c87f0df8)
This commit is contained in:
parent
f1628ea6f1
commit
42304b34fd
1 changed files with 4 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue