diff options
Diffstat (limited to 'block/nbd.c')
-rw-r--r-- | block/nbd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/nbd.c b/block/nbd.c index bbe0f99d6c..975faab2c5 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -306,10 +306,9 @@ NBDClientSession *nbd_get_client_session(BlockDriverState *bs) return &s->client; } -static QIOChannelSocket *nbd_establish_connection(SocketAddress *saddr_flat, +static QIOChannelSocket *nbd_establish_connection(SocketAddress *saddr, Error **errp) { - SocketAddressLegacy *saddr = socket_address_crumple(saddr_flat); QIOChannelSocket *sioc; Error *local_err = NULL; @@ -319,7 +318,6 @@ static QIOChannelSocket *nbd_establish_connection(SocketAddress *saddr_flat, qio_channel_socket_connect_sync(sioc, saddr, &local_err); - qapi_free_SocketAddressLegacy(saddr); if (local_err) { object_unref(OBJECT(sioc)); error_propagate(errp, local_err); |