summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-04-24 13:24:32 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-05-10 14:36:58 +0200
commitbf7529823ece67f5cb4ecc404e262426e545ce67 (patch)
treeef945c9c2c52294301141e3cc33725fda2cb766e
parente69d386975be997d3d840de9045e51521ac4474c (diff)
downloadNetworkManager-bf7529823ece67f5cb4ecc404e262426e545ce67.tar.gz
cli: do not leave dangling pointers in a global struct
Makes Thomas content and happy..
-rw-r--r--clients/cli/nmcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/nmcli.c b/clients/cli/nmcli.c
index 59d30055d9..cec1930c9b 100644
--- a/clients/cli/nmcli.c
+++ b/clients/cli/nmcli.c
@@ -607,7 +607,7 @@ nmc_cleanup (NmCli *nmc)
if (nmc->pwds_hash)
g_hash_table_destroy (nmc->pwds_hash);
- g_free (nmc->required_fields);
+ nm_clear_g_free (&nmc->required_fields);
if (nmc->pager_pid > 0) {
fclose (stdout);