On 03/25/2011 04:31 AM, Stefan Hajnoczi wrote:
On Fri, Mar 25, 2011 at 8:45 AM, Ulrich Obergfell<uober...@redhat.com>  wrote:
This is version 2 of the patch that I originally posted in:

http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg02063.html

[Sorry, I missed to include the keyword 'PATCH' in the subject
  of the original post.]

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_destroy(VncPalette *palette)
     71 {
     72     if (palette == NULL) {
     73         qemu_free(palette);
     74     }
     75 }

Version 2 of the patch calls qemu_free() unconditionally.

Signed-off-by: Ulrich Obergfell<uober...@redhat.com>
Looks good.

Applied.  Thanks.

Regards,

Anthony Liguori

Reviewed-by: Stefan Hajnoczi<stefa...@linux.vnet.ibm.com>


Reply via email to