diff options
author | Li Qiang | 2016-12-29 09:11:26 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2017-01-03 15:47:21 +0100 |
commit | 33243031dad02d161225ba99d782616da133f689 (patch) | |
tree | ad918b494795301504981bf77aaa1fb5379bcd2a /include/exec/cpu-common.h | |
parent | virtio-gpu: call cleanup mapping function in resource destroy (diff) | |
download | qemu-33243031dad02d161225ba99d782616da133f689.tar.gz qemu-33243031dad02d161225ba99d782616da133f689.tar.xz qemu-33243031dad02d161225ba99d782616da133f689.zip |
virtio-gpu-3d: fix memory leak in resource attach backing
If the virgl_renderer_resource_attach_iov function fails the
'res_iovs' will be leaked. Add check of the return value to
free the 'res_iovs' when failing.
Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1482999086-59795-1-git-send-email-liq3ea@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec/cpu-common.h')
0 files changed, 0 insertions, 0 deletions