migration: fix memory leak
Reported by ASAN. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1afee8c3da
commit
5e78bc6a47
@ -199,6 +199,7 @@ static void socket_start_incoming_migration(SocketAddress *saddr,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
migrate_add_address(address);
|
migrate_add_address(address);
|
||||||
|
qapi_free_SocketAddress(address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user