cli: fix leak in _output_selection_parse()

Reported by coverity.

Fixes: fdd40b6a68
This commit is contained in:
Thomas Haller 2017-10-30 11:17:48 +01:00
parent fa61e78d80
commit 31facf6fad

View file

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