vhost/test: fix memory leak of vhost virtqueues
authorXianting Tian <xianting.tian@linux.alibaba.com>
Tue, 28 Dec 2021 03:09:24 +0000 (11:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 Jan 2022 23:50:53 +0000 (18:50 -0500)
commit080063920777af65105e5953e2851e036376e3ea
treed24d7534462d4fc56460e0786a156addaec3d2e0
parent97143b70aa847f2b0a1f959dde126b76ff7b5376
vhost/test: fix memory leak of vhost virtqueues

We need free the vqs in .release(), which are allocated in .open().

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Link: https://lore.kernel.org/r/20211228030924.3468439-1-xianting.tian@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/test.c