From bf7529823ece67f5cb4ecc404e262426e545ce67 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 24 Apr 2018 13:24:32 +0200 Subject: [PATCH] cli: do not leave dangling pointers in a global struct Makes Thomas content and happy.. --- clients/cli/nmcli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);