From: Gonglei <[email protected]>

After commit 4c7e251a (), when dump memory completed,
the s->fd will be closed twice. We should return
directly when dump completed.

Signed-off-by: Gonglei <[email protected]>
---
 dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dump.c b/dump.c
index 06a4915..9d9a409 100644
--- a/dump.c
+++ b/dump.c
@@ -626,6 +626,7 @@ static void dump_iterate(DumpState *s, Error **errp)
         ret = get_next_block(s, block);
         if (ret == 1) {
             dump_completed(s);
+            return;
         }
     }
 }
-- 
1.7.12.4



Reply via email to