mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
virsh-network: Resolve Coverity RESOURCE_LEAK
Need to free 'xmlFromFile' on/for the error path when current was returning false only
This commit is contained in:
parent
0cec79b91b
commit
adedda2cc8
@ -974,7 +974,7 @@ cmdNetworkUpdate(vshControl *ctl, const vshCmd *cmd)
|
||||
if (current) {
|
||||
if (live || config) {
|
||||
vshError(ctl, "%s", _("--current must be specified exclusively"));
|
||||
return false;
|
||||
goto cleanup;
|
||||
}
|
||||
flags |= VIR_NETWORK_UPDATE_AFFECT_CURRENT;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user