]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user-gpu: Release memory returned by vu_queue_pop() with free()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 23 Mar 2020 11:29:41 +0000 (12:29 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Jun 2020 02:10:03 +0000 (21:10 -0500)
commitea1518bb5e3e89bea4774646f49573c1a9e3cda6
tree21b0070d0771786dc51386c51993eaba6f00b4e4
parentc5feb392195c0c6dc0d769d3c5a5c51e1b831792
vhost-user-gpu: Release memory returned by vu_queue_pop() with free()

vu_queue_pop() returns memory that must be freed with free().

Cc: qemu-stable@nongnu.org
Reported-by: Coverity (CID 1421887 ALLOC_FREE_MISMATCH)
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 4ff97121a3ee631971aadc87e3d4e7fb66f15aa8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
contrib/vhost-user-gpu/main.c
contrib/vhost-user-gpu/virgl.c