From: Hongwei Bi Date: Fri, 27 Sep 2013 22:02:31 +0000 (+0800) Subject: virsh-domain: Free dom before return false in cmdDump X-Git-Tag: v1.1.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7db19ff9ab1bdbed6b7b08e6c579ba92d0f405b4;p=thirdparty%2Flibvirt.git virsh-domain: Free dom before return false in cmdDump --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 8538125c4d..fa012d1b30 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -4488,7 +4488,7 @@ cmdDump(vshControl *ctl, const vshCmd *cmd) return false; if (vshCommandOptStringReq(ctl, cmd, "file", &to) < 0) - return false; + goto cleanup; if (vshCommandOptBool(cmd, "verbose")) verbose = true;