mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 07:40:12 +01:00
cli: fix leak in _output_selection_parse()
Reported by coverity.
Fixes: fdd40b6a68
This commit is contained in:
parent
fa61e78d80
commit
31facf6fad
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue