]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Substitute goto label out with cleanup
authorOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 14:22:51 +0000 (22:22 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 14:22:51 +0000 (22:22 +0800)
Introduced by 241cbc13a, pushed under urgent rule.

tools/virsh.c

index 0bb4c679d63f407281fcf0e012275f8351d2fbbb..1ad84a28222d9f5902abb75b1b05aebeb6bd83f3 100644 (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;