diff options
Diffstat (limited to 'clients/cli/nmcli.c')
-rw-r--r-- | clients/cli/nmcli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/cli/nmcli.c b/clients/cli/nmcli.c index 74029438f1..8410020fee 100644 --- a/clients/cli/nmcli.c +++ b/clients/cli/nmcli.c @@ -499,7 +499,9 @@ nmc_init (NmCli *nmc) nmc->timeout = -1; nmc->connections = NULL; + nmc->secret_agent = NULL; + nmc->pwds_hash = NULL; nmc->should_wait = FALSE; nmc->nowait_flag = TRUE; @@ -531,6 +533,8 @@ nmc_cleanup (NmCli *nmc) nm_secret_agent_unregister (nmc->secret_agent, NULL, NULL); g_object_unref (nmc->secret_agent); } + if (nmc->pwds_hash) + g_hash_table_destroy (nmc->pwds_hash); g_free (nmc->required_fields); nmc_empty_output_fields (nmc); |