aboutsummaryrefslogtreecommitdiff
path: root/chardev/char-win.c
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2021-11-02 16:51:57 +0100
committerMichael S. Tsirkin <mst@redhat.com>2021-11-11 03:13:05 -0500
commitcd523a4181b152004fc0aed18381aefe600ac38e (patch)
treef16b8e49659abb036042fef34722fb300b7f2eb4 /chardev/char-win.c
parent0a70bcf18caf7a61d480f8448723c15209d128ef (diff)
downloadqemu-cd523a4181b152004fc0aed18381aefe600ac38e.zip
qemu-cd523a4181b152004fc0aed18381aefe600ac38e.tar.gz
qemu-cd523a4181b152004fc0aed18381aefe600ac38e.tar.bz2
net/vhost-vdpa: fix memory leak in vhost_vdpa_get_max_queue_pairs()
Use g_autofree to ensure that `config` is freed when vhost_vdpa_get_max_queue_pairs() returns. Reported-by: Coverity (CID 1465228: RESOURCE_LEAK) Fixes: 402378407d ("vhost-vdpa: multiqueue support") Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20211102155157.241034-1-sgarzare@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'chardev/char-win.c')
0 files changed, 0 insertions, 0 deletions