Message ID | 1432811625-13392-4-git-send-email-zhaoshenglong@huawei.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBJXTTOVQKGQEMAXE6AI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 751DB218EC for <linaro@patches.linaro.org>; Thu, 28 May 2015 11:19:05 +0000 (UTC) Received: by lagv1 with SMTP id v1sf10167087lag.1 for <linaro@patches.linaro.org>; Thu, 28 May 2015 04:19:04 -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=GTOzUT0C6lYHamkioFREyWWE0R21ZVqDhfvzfyEWZX0=; b=evoCjBeJ9ieSPmRjCCJdEfCnrpCjekrUOl6y5/pnNq1rZWuI46c8/JpSS4C+uLDehH v9uHP6FN/VDk3trtw5oco4jBoNpd33cdqwX+/31qso6ZEywrIIy0C0zjhhrntwK8k81a 2xs1DLTAGh0vI4wqEoP+PQZPsoSaXM49qfW5kuj+OHBUTIhLzif+Kzkx8X4u8Ib1/Y70 eR7+yr0e/IZMz9+/KMmJq5NIrhJ2Z65LdeT8gzZ22i+nncLoSQRXIZeQ7T2HS4V6QSl7 MZrNQ7aa6GbU4gOC7PGBviDPQvcCJC5P1t4QociQshsJqhOi11RYciQLpW6lJeeTVTTp 2yow== X-Gm-Message-State: ALoCoQlM2k0agiYNnU7HlnEBG1ekIaHb8bNYHgu/PDpv+feL65I9Q0KfzfyPCArpV+sE+TBSAEC/ X-Received: by 10.180.11.101 with SMTP id p5mr7367928wib.3.1432811942398; Thu, 28 May 2015 04:19:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.98 with SMTP id ln2ls176472lac.61.gmail; Thu, 28 May 2015 04:19:02 -0700 (PDT) X-Received: by 10.112.210.2 with SMTP id mq2mr2225059lbc.17.1432811942101; Thu, 28 May 2015 04:19:02 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id h1si1691992lah.56.2015.05.28.04.19.02 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 04:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by labpy14 with SMTP id py14so17184199lab.0 for <patchwork-forward@linaro.org>; Thu, 28 May 2015 04:19:02 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr2216417lbc.72.1432811942015; Thu, 28 May 2015 04:19:02 -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 hn6csp1071525lbb; Thu, 28 May 2015 04:19:01 -0700 (PDT) X-Received: by 10.140.40.39 with SMTP id w36mr2338915qgw.65.1432811940695; Thu, 28 May 2015 04:19:00 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h65si1530078qkh.65.2015.05.28.04.19.00 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 28 May 2015 04:19:00 -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]:57760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1Yxvpz-0002PS-Ly for patch@linaro.org; Thu, 28 May 2015 07:18:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxvlx-0004NF-7K for qemu-devel@nongnu.org; Thu, 28 May 2015 07:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxvlw-0001cK-2P for qemu-devel@nongnu.org; Thu, 28 May 2015 07:14:49 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:18641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <zhaoshenglong@huawei.com>) id 1Yxvlo-0001RD-8c; Thu, 28 May 2015 07:14:41 -0400 Received: from 172.24.2.119 (EHLO szxeml432-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CMA87065; Thu, 28 May 2015 19:14:30 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml432-hub.china.huawei.com (10.82.67.209) with Microsoft SMTP Server id 14.3.158.1; Thu, 28 May 2015 19:14:19 +0800 From: Shannon Zhao <zhaoshenglong@huawei.com> To: <qemu-devel@nongnu.org> Date: Thu, 28 May 2015 19:13:44 +0800 Message-ID: <1432811625-13392-4-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1432811625-13392-1-git-send-email-zhaoshenglong@huawei.com> References: <1432811625-13392-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: 119.145.14.65 Cc: qemu-trivial@nongnu.org, pbonzini@redhat.com, mjt@tls.msk.ru, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH 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.45 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..f74e6f2 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -1027,9 +1027,11 @@ void ppce500_init(MachineState *machine, PPCE500Params *params) NULL, NULL); if (kernel_size < 0) { fprintf(stderr, "qemu: could not load firmware '%s'\n", filename); + g_free(filename); exit(1); } } + g_free(filename); /* Reserve space for dtb */ dt_base = (loadaddr + bios_size + DTC_LOAD_PAD) & ~DTC_PAD_MASK;