Skip to content
Snippets Groups Projects
Commit ab36edcf authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin
Browse files

vhost-vdpa: fix leaking of vhost_net in vhost_vdpa_add()


Fixes: 1e0a84ea ("vhost-vdpa: introduce vhost-vdpa net client")
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Message-Id: <20210903091031.47303-9-jasowang@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent f47a47e4
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ static int vhost_vdpa_add(NetClientState *ncs, void *be)
err:
if (net) {
vhost_net_cleanup(net);
g_free(net);
}
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment