summaryrefslogtreecommitdiffstats
path: root/target-openrisc/sys_helper.c
diff options
context:
space:
mode:
authorLi Qiang2016-12-29 09:11:26 +0100
committerGerd Hoffmann2017-01-03 15:47:21 +0100
commit33243031dad02d161225ba99d782616da133f689 (patch)
treead918b494795301504981bf77aaa1fb5379bcd2a /target-openrisc/sys_helper.c
parentvirtio-gpu: call cleanup mapping function in resource destroy (diff)
downloadqemu-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 'target-openrisc/sys_helper.c')
0 files changed, 0 insertions, 0 deletions