From patchwork Wed Jul 7 18:58:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 58156 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 06A49B6F16 for ; Thu, 8 Jul 2010 05:26:09 +1000 (EST) Received: from localhost ([127.0.0.1]:58329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWaFj-00063g-6g for incoming@patchwork.ozlabs.org; Wed, 07 Jul 2010 15:25:51 -0400 Received: from [140.186.70.92] (port=34977 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWZog-000874-Vn for qemu-devel@nongnu.org; Wed, 07 Jul 2010 14:58:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWZoc-0002gO-AZ for qemu-devel@nongnu.org; Wed, 07 Jul 2010 14:57:54 -0400 Received: from iksaif.net ([88.191.73.63]:35195) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWZoc-0002fL-54 for qemu-devel@nongnu.org; Wed, 07 Jul 2010 14:57:50 -0400 Received: from falgoret.iksaif.net (localhost [127.0.0.1]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id 9D4D3C90089; Wed, 7 Jul 2010 20:58:14 +0200 (CEST) From: Corentin Chary To: qemu-devel@nongnu.org Date: Wed, 7 Jul 2010 20:58:00 +0200 Message-Id: <1278529086-10391-13-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1278529086-10391-1-git-send-email-corentincj@iksaif.net> References: <1278529086-10391-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 v2 12/18] 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 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 }