From patchwork Wed Jul 7 18:58:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2,12/18] vnc: fix tight png memory leak From: Corentin Chary X-Patchwork-Id: 58156 Message-Id: <1278529086-10391-13-git-send-email-corentincj@iksaif.net> To: qemu-devel@nongnu.org Cc: Corentin Chary , Anthony Liguori , Alexander Graf Date: Wed, 7 Jul 2010 20:58:00 +0200 The tight.png buffer was never released. Signed-off-by: Corentin Chary --- ui/vnc-enc-tight.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 52b81f3..3f19df2 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1674,4 +1674,7 @@ void vnc_tight_clear(VncState *vs) #ifdef CONFIG_VNC_JPEG buffer_free(&vs->tight.jpeg); #endif +#ifdef CONFIG_VNC_PNG + buffer_free(&vs->tight.png); +#endif }