提交 adedda2c 编写于 作者: J John Ferlan

virsh-network: Resolve Coverity RESOURCE_LEAK

Need to free 'xmlFromFile' on/for the error path when current was
returning false only
上级 0cec79b9
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册