Skip to content
Commit 08006392 authored by Xianting Tian's avatar Xianting Tian Committed by Michael S. Tsirkin
Browse files

vhost/test: fix memory leak of vhost virtqueues



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

Signed-off-by: default avatarXianting Tian <xianting.tian@linux.alibaba.com>
Link: https://lore.kernel.org/r/20211228030924.3468439-1-xianting.tian@linux.alibaba.com
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
parent 97143b70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment