OSDN Git Service

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)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Apr 2020 18:00:39 +0000 (19:00 +0100)
commit4ff97121a3ee631971aadc87e3d4e7fb66f15aa8
tree8bd408e71b492c556f4dc0bc484df2106752abb3
parent6329df5b53a3307f289451137c9910da0f09adc6
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>
contrib/vhost-user-gpu/vhost-user-gpu.c
contrib/vhost-user-gpu/virgl.c