Message ID | 1432816784-12436-4-git-send-email-zhaoshenglong@huawei.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBSM2TSVQKGQEETWHGZQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CEB3B218EC for <linaro@patches.linaro.org>; Thu, 28 May 2015 12:42:49 +0000 (UTC) Received: by wgez8 with SMTP id z8sf9858028wge.2 for <linaro@patches.linaro.org>; Thu, 28 May 2015 05:42:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:content-type:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=sL7AC6FOvNFd1oa5JHOYES7mv23/uk1daxM/TO+rgsI=; b=FuEbEkNzBjfBx6lkjGcG0+Kj9gNUnSkSIEDUaJnjxJvBCqakFXGGzhxQdu2a2RPcQS 4NPzXbqntma1DoDkoV7o8qFDAJgfC/QpTQ9mu0flPomAte2+QTMJ9eP5zQRBW50EuqYD TXbXVDFbSzUNaYEYSwHLnVcQsd/ZSlPcZ8ENvdYwm8Eqvddh4yrXTrBsT9cevzYoiEyZ zy5wmHR7gY7Wp9jPVPjKt0LhVtUuBD7BgeCraz5wFPdM5evrGnd0gGJqT957/luxiI5D W5qBIzLU1oTcMwqXqHQAgfoNcudCzZpq6uT3x+YqEqQ98hrmODvq29ck/Y5MlIUslQHX 6BzA== X-Gm-Message-State: ALoCoQkCHuO/P28BCrvrl4IRMN5spylhyW1eBzcn5x1llN2y9vq2huxEZTot2YjNnMcPc6Dj47wt X-Received: by 10.194.142.205 with SMTP id ry13mr2553476wjb.2.1432816969062; Thu, 28 May 2015 05:42:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.10 with SMTP id z10ls187938lae.24.gmail; Thu, 28 May 2015 05:42:48 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr2539003lag.112.1432816968923; Thu, 28 May 2015 05:42:48 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id th3si1840878lbb.146.2015.05.28.05.42.48 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 05:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laat2 with SMTP id t2so30685992laa.1 for <patchwork-forward@linaro.org>; Thu, 28 May 2015 05:42:48 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr2600793laj.88.1432816968683; Thu, 28 May 2015 05:42:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1127845lbb; Thu, 28 May 2015 05:42:47 -0700 (PDT) X-Received: by 10.229.193.7 with SMTP id ds7mr2995692qcb.8.1432816967462; Thu, 28 May 2015 05:42:47 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n28si983492qkh.89.2015.05.28.05.42.46 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 28 May 2015 05:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:58706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1Yxx94-0002cO-Ke for patch@linaro.org; Thu, 28 May 2015 08:42:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxx6s-0007gn-HK for qemu-devel@nongnu.org; Thu, 28 May 2015 08:40:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxx6k-0007sR-Nu for qemu-devel@nongnu.org; Thu, 28 May 2015 08:40:30 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:57978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxx6k-0007iV-27; Thu, 28 May 2015 08:40:22 -0400 Received: from 172.24.2.119 (EHLO szxeml426-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id COQ01164; Thu, 28 May 2015 20:40:07 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.158.1; Thu, 28 May 2015 20:39:58 +0800 From: Shannon Zhao <zhaoshenglong@huawei.com> To: <qemu-devel@nongnu.org> Date: Thu, 28 May 2015 20:39:43 +0800 Message-ID: <1432816784-12436-4-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1432816784-12436-1-git-send-email-zhaoshenglong@huawei.com> References: <1432816784-12436-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 58.251.152.64 Cc: qemu-trivial@nongnu.org, pbonzini@redhat.com, mjt@tls.msk.ru, shannon.zhao@linaro.org, peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH v2 3/4] hw/ppc/e500.c: Fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index c10e1b5..d300846 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -1030,6 +1030,7 @@ void ppce500_init(MachineState *machine, PPCE500Params *params) exit(1); } } + g_free(filename); /* Reserve space for dtb */ dt_base = (loadaddr + bios_size + DTC_LOAD_PAD) & ~DTC_PAD_MASK;