virsh: Substitute goto label out with cleanup

Introduced by 241cbc13a, pushed under urgent rule.
This commit is contained in:
Osier Yang 2011-08-23 22:22:51 +08:00
parent 241cbc13ac
commit fb6d616523

View File

@ -5223,7 +5223,7 @@ blockJobImpl(vshControl *ctl, const vshCmd *cmd,
else if (mode == VSH_CMD_BLOCK_JOB_PULL)
ret = virDomainBlockPull(dom, path, bandwidth, 0);
out:
cleanup:
if (dom)
virDomainFree(dom);
return ret;