From patchwork Wed Mar 4 17:06:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 446393 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BA33F140142 for ; Thu, 5 Mar 2015 06:38:42 +1100 (AEDT) Received: from localhost ([::1]:46532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTF7w-0000uK-Vf for incoming@patchwork.ozlabs.org; Wed, 04 Mar 2015 14:38:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTF60-0006dI-Do for qemu-devel@nongnu.org; Wed, 04 Mar 2015 14:36:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTF5u-0001Sv-Nh for qemu-devel@nongnu.org; Wed, 04 Mar 2015 14:36:40 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:50041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTF5u-0001SE-G7; Wed, 04 Mar 2015 14:36:34 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 7BA35408E9; Wed, 4 Mar 2015 22:36:31 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 9A58996C; Wed, 4 Mar 2015 20:07:10 +0300 (MSK) Received: (nullmailer pid 17544 invoked by uid 1000); Wed, 04 Mar 2015 17:07:05 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Wed, 4 Mar 2015 20:06:47 +0300 Message-Id: <00258facdfa50f013282c4896e06ba34dd9bd06f.1425488753.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Gonglei , Michael Tokarev Subject: [Qemu-devel] [PULL 30/47] sparc/leon3.c: fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Gonglei Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/sparc/leon3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 751392e..e41ec0b 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -186,6 +186,7 @@ static void leon3_generic_hw_init(MachineState *machine) fprintf(stderr, "Can't read bios image %s\n", filename); exit(1); } + g_free(filename); /* Can directly load an application. */ if (kernel_filename != NULL) {