From: Paolo Bonzini <pbonz...@redhat.com> The call in buffered_close is enough, because buffered_close is called already by migrate_fd_cleanup.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> Signed-off-by: Juan Quintela <quint...@redhat.com> --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 73ce170..bde4956 100644 --- a/migration.c +++ b/migration.c @@ -272,7 +272,7 @@ static int migrate_fd_cleanup(MigrationState *s) s->file = NULL; } - migrate_fd_close(s); + assert(s->fd == -1); return ret; } -- 1.7.11.7