migration: fix memory leak

Reported by ASAN.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2019-03-12 14:50:50 +01:00
parent 1afee8c3da
commit 5e78bc6a47

View File

@ -199,6 +199,7 @@ static void socket_start_incoming_migration(SocketAddress *saddr,
return;
}
migrate_add_address(address);
qapi_free_SocketAddress(address);
}
}