summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2014-08-27 15:06:56 -0400
committerJohn Ferlan <jferlan@redhat.com>2014-08-28 08:12:16 -0400
commitadedda2cc81862b54b9eb7f0c8a6a690fcbf818e (patch)
treebd1e451527f7538dab37ba4d02fce5d2d5165320
parent0cec79b91bf07a8cb18460f74753c05759ee6058 (diff)
downloadlibvirt-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.c2
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 {