Re: [Qemu-devel] [PATCH] virtio-gpu-3d: fix memory leak in resource attach backing

2016-12-29 Thread Li Qiang
2016-12-29 21:56 GMT+08:00 Marc-André Lureau : > Hi > > - Original Message - > > 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 > > Reviewed-

Re: [Qemu-devel] [PATCH] virtio-gpu-3d: fix memory leak in resource attach backing

2016-12-29 Thread Marc-André Lureau
Hi - Original Message - > 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 Reviewed-by: Marc-André Lureau Interestingly, in vrend_renderer_resource

[Qemu-devel] [PATCH] virtio-gpu-3d: fix memory leak in resource attach backing

2016-12-29 Thread Li Qiang
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 --- hw/display/virtio-gpu-3d.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/display/