From 7db19ff9ab1bdbed6b7b08e6c579ba92d0f405b4 Mon Sep 17 00:00:00 2001 From: Hongwei Bi Date: Sat, 28 Sep 2013 06:02:31 +0800 Subject: [PATCH] virsh-domain: Free dom before return false in cmdDump --- tools/virsh-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5