[libvirt] [PATCH v2] virsh-domain: Free dom before return false in cmdDump

Hongwei Bi hwbi2008 at gmail.com
Fri Sep 27 22:02:31 UTC 2013


---
 tools/virsh-domain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 8538125..fa012d1 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;
-- 
1.7.1




More information about the libvir-list mailing list