From patchwork Wed Jun 16 07:12:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 55855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8FE681007D2 for ; Wed, 16 Jun 2010 16:47:08 +1000 (EST) Received: from localhost ([127.0.0.1]:46281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOmOv-0003BW-Gq for incoming@patchwork.ozlabs.org; Wed, 16 Jun 2010 02:47:05 -0400 Received: from [140.186.70.92] (port=53325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOlqz-0001sv-3o for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOlqw-00032G-2t for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:12:00 -0400 Received: from iksaif.net ([88.191.73.63]:35948) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOlqv-00030f-US for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:11:58 -0400 Received: from tartiflon (lal69-3-82-241-209-44.fbx.proxad.net [82.241.209.44]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id 3F818C90062; Wed, 16 Jun 2010 08:16:19 +0200 (CEST) From: Corentin Chary To: qemu-devel@nongnu.org Date: Wed, 16 Jun 2010 09:12:09 +0200 Message-Id: <1276672333-14831-13-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1276672333-14831-1-git-send-email-corentincj@iksaif.net> References: <1276672333-14831-1-git-send-email-corentincj@iksaif.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Corentin Chary , Anthony Liguori , Alexander Graf Subject: [Qemu-devel] [PATCH 12/16] vnc: fix tight png memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 dbde08d..1d926c9 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1659,4 +1659,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 }