Re: [Qemu-devel] [PATCH] virtio-gpu: fix memory leak in update_cursor_data_virgl

2016-11-01 Thread Marc-André Lureau
Hi On Tue, Nov 1, 2016 at 2:07 PM Li Qiang wrote: > From: Li Qiang > > In update_cursor_data_virgl function, if the 'width'/ 'height' > is not equal to current cursor's width/height it will return > without free the 'data' allocated previously. This will lead > a memory leak issue. This patch f

Re: [Qemu-devel] [PATCH] virtio-gpu: fix memory leak in update_cursor_data_virgl

2016-11-01 Thread Gerd Hoffmann
On Di, 2016-11-01 at 04:06 -0700, Li Qiang wrote: > From: Li Qiang > > In update_cursor_data_virgl function, if the 'width'/ 'height' > is not equal to current cursor's width/height it will return > without free the 'data' allocated previously. This will lead > a memory leak issue. This patch fix

[Qemu-devel] [PATCH] virtio-gpu: fix memory leak in update_cursor_data_virgl

2016-11-01 Thread Li Qiang
From: Li Qiang In update_cursor_data_virgl function, if the 'width'/ 'height' is not equal to current cursor's width/height it will return without free the 'data' allocated previously. This will lead a memory leak issue. This patch fix this issue. Signed-off-by: Li Qiang --- hw/display/virtio-