diff options
author | John Ferlan <jferlan@redhat.com> | 2014-08-27 15:06:56 -0400 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2014-08-28 08:12:16 -0400 |
commit | adedda2cc81862b54b9eb7f0c8a6a690fcbf818e (patch) | |
tree | bd1e451527f7538dab37ba4d02fce5d2d5165320 | |
parent | 0cec79b91bf07a8cb18460f74753c05759ee6058 (diff) | |
download | libvirt-adedda2cc81862b54b9eb7f0c8a6a690fcbf818e.tar.gz |
virsh-network: Resolve Coverity RESOURCE_LEAK
Need to free 'xmlFromFile' on/for the error path when current was
returning false only
-rw-r--r-- | tools/virsh-network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virsh-network.c b/tools/virsh-network.c index 578abe02c2..9497472541 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -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 { |