diff options
Diffstat (limited to 'qemu/migration/savevm.c')
-rw-r--r-- | qemu/migration/savevm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu/migration/savevm.c b/qemu/migration/savevm.c index 60712153f..a42874b10 100644 --- a/qemu/migration/savevm.c +++ b/qemu/migration/savevm.c @@ -945,8 +945,8 @@ static int qemu_savevm_state(QEMUFile *f, Error **errp) qemu_savevm_state_complete(f); ret = qemu_file_get_error(f); } + qemu_savevm_state_cancel(); if (ret != 0) { - qemu_savevm_state_cancel(); error_setg_errno(errp, -ret, "Error while writing VM state"); } return ret; |