From 31facf6fad1bb857f27987fd54c3322e7b469a8e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 30 Oct 2017 11:17:48 +0100 Subject: [PATCH] cli: fix leak in _output_selection_parse() Reported by coverity. Fixes: fdd40b6a6821eaced26a08ca6d2ad731ad506071 --- clients/cli/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/cli/utils.c b/clients/cli/utils.c index b69f0ea75a..2f450b40e1 100644 --- a/clients/cli/utils.c +++ b/clients/cli/utils.c @@ -878,6 +878,7 @@ _output_selection_parse (const NMMetaAbstractInfo *const*fields, if (!selection->num) { g_set_error (error, NMCLI_ERROR, 1, _("failure to select field")); + g_free (selection); return FALSE; }