migration: close socket QEMUFile from socket_close
The common suffix now is process_incoming_migration+qemu_fclose. Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6c3601361f
commit
ab52a824a4
@ -103,6 +103,8 @@ static void tcp_accept_incoming_migration(void *opaque)
|
||||
|
||||
process_incoming_migration(f);
|
||||
qemu_fclose(f);
|
||||
return;
|
||||
|
||||
out:
|
||||
closesocket(c);
|
||||
}
|
||||
|
@ -103,6 +103,8 @@ static void unix_accept_incoming_migration(void *opaque)
|
||||
|
||||
process_incoming_migration(f);
|
||||
qemu_fclose(f);
|
||||
return;
|
||||
|
||||
out:
|
||||
close(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user