From patchwork Wed Nov 18 09:48:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 38739 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 2710FB6EE9 for ; Wed, 18 Nov 2009 20:49:51 +1100 (EST) Received: from localhost ([127.0.0.1]:43533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAhAa-0004t7-9Y for incoming@patchwork.ozlabs.org; Wed, 18 Nov 2009 04:49:48 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAhA2-0004sH-C4 for qemu-devel@nongnu.org; Wed, 18 Nov 2009 04:49:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAh9x-0004qa-HA for qemu-devel@nongnu.org; Wed, 18 Nov 2009 04:49:13 -0500 Received: from [199.232.76.173] (port=34571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAh9x-0004qU-Cm for qemu-devel@nongnu.org; Wed, 18 Nov 2009 04:49:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35240) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAh9w-0004oA-63 for qemu-devel@nongnu.org; Wed, 18 Nov 2009 04:49:08 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAI9n6Ip000396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Nov 2009 04:49:07 -0500 Received: from localhost.localdomain (dhcp-5-175.str.redhat.com [10.32.5.175]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAI9n5qA018378; Wed, 18 Nov 2009 04:49:06 -0500 From: Kevin Wolf To: qemu-devel@nongnu.org Date: Wed, 18 Nov 2009 10:48:01 +0100 Message-Id: <1258537681-25629-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Kevin Wolf Subject: [Qemu-devel] [PATCH] qemu-img: Fix 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 Signed-off-by: Kevin Wolf --- qemu-img.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 972843a..e4ffe46 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -607,6 +607,7 @@ static int img_convert(int argc, char **argv) if (options && !strcmp(options, "?")) { print_option_help(drv->create_options); + free(bs); return 0; }