diff --git a/net/vhost-user.c b/net/vhost-user.c index 608b837175adbac4699b057904ef6a88902bd942..a39f9c9974dba5905e989e5a309fb1772241cdef 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -345,6 +345,9 @@ err: s->vhost_user = NULL; } } + if (nc0) { + qemu_del_net_client(nc0); + } return -1; }