Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> --- block/nbd.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/block/nbd.c b/block/nbd.c
index 272af60b44..6efa11a185 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -1891,6 +1891,8 @@ static int nbd_client_handshake(BlockDriverState *bs,
Error **errp)
nbd_yank, bs);
object_unref(OBJECT(s->sioc));
s->sioc = NULL;
+ object_unref(OBJECT(s->ioc));
+ s->ioc = NULL;
return ret;
}
--
2.29.2
