Re: [Qemu-devel] vnc: severe memory leak caused by broken palette_destroy() function

2011-03-21 Thread Stefan Hajnoczi
On Mon, Mar 21, 2011 at 11:52 AM, Ulrich Obergfell wrote: > > The following commit breaks the code of the function palette_destroy(). > > http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=e31e3694afef58ba191cbcc6875ec243e5971268 > > The broken code causes a severe memory leak of 'VncPalett

[Qemu-devel] vnc: severe memory leak caused by broken palette_destroy() function

2011-03-21 Thread Ulrich Obergfell
The following commit breaks the code of the function palette_destroy(). http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=e31e3694afef58ba191cbcc6875ec243e5971268 The broken code causes a severe memory leak of 'VncPalette' structures because it never frees anything: 70 void palette