From: Osier Yang Date: Tue, 23 Aug 2011 14:22:51 +0000 (+0800) Subject: virsh: Substitute goto label out with cleanup X-Git-Tag: v0.9.5-rc1~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb6d6165231e0e815ba693de86b9c14247cff479;p=thirdparty%2Flibvirt.git virsh: Substitute goto label out with cleanup Introduced by 241cbc13a, pushed under urgent rule. --- diff --git a/tools/virsh.c b/tools/virsh.c index 0bb4c679d6..1ad84a2822 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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;