cli: do not leave dangling pointers in a global struct

Makes Thomas content and happy..
This commit is contained in:
Lubomir Rintel 2018-04-24 13:24:32 +02:00
parent e69d386975
commit bf7529823e

View file

@ -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);