From patchwork Wed Jun 17 02:59:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 49971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F1721228F8 for ; Wed, 17 Jun 2015 03:04:54 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf5845658wgf.1 for ; Tue, 16 Jun 2015 20:04:54 -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=fv1CD7UIH5rv0NdNRFzqmMXEKZTlpcMDku9s932KYLQ=; b=dWnUwEDQy5y8/nmDj2TS27ifcyh5OYVQIkGqZc0MS+eqWmLQRz/hcauHa4EfcV5Cwt p9vJ5FR2dZyZ83GtY9Dyyx1wiTChmV2m23pJBCjxJ5IupcAIZo15YcTC/HiTomDgmmSJ D9XU91b5g7qbrfm6rZgC8aqXCLYUv7ox7dJ1XmkepFOzwh0vumYZR8Id1w5zIBnf+Km6 dpxi7WIvLv+G54IYbLPcHcc302w1QgBzLFh6Vpkp0Oj4j4L9DssGToc+9o83jDecf9+a SY3Fpdcpdiw155NSTVPC9JXzwUMC2+CE3k946XVYkusgTSKfBQdUUwkCzqXeqmbPjzmY E4Jg== X-Gm-Message-State: ALoCoQnAvTSPc0JteOYwPjelWngia+ymJTTRg1AITSVvobrB+ord/2AeLYuZUyBf/ZpTrHuiKw09 X-Received: by 10.112.9.100 with SMTP id y4mr3457247lba.20.1434510294248; Tue, 16 Jun 2015 20:04:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.73 with SMTP id i9ls233867lai.100.gmail; Tue, 16 Jun 2015 20:04:54 -0700 (PDT) X-Received: by 10.152.6.132 with SMTP id b4mr5195538laa.53.1434510294126; Tue, 16 Jun 2015 20:04:54 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id g10si2234631lam.175.2015.06.16.20.04.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 20:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lblr1 with SMTP id r1so22687470lbl.0 for ; Tue, 16 Jun 2015 20:04:53 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr5310982lbc.73.1434510293868; Tue, 16 Jun 2015 20:04:53 -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 hn6csp154626lbb; Tue, 16 Jun 2015 20:04:53 -0700 (PDT) X-Received: by 10.55.18.27 with SMTP id c27mr819321qkh.84.1434510292786; Tue, 16 Jun 2015 20:04:52 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 76si3046532qkz.88.2015.06.16.20.04.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 20:04:52 -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]:43983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53el-0006Vc-Us for patch@linaro.org; Tue, 16 Jun 2015 23:04:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53du-0005cj-5v for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z53dt-00070N-2L for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:03:58 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:40375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53dm-0006vl-G7; Tue, 16 Jun 2015 23:03:51 -0400 Received: from 172.24.2.119 (EHLO szxeml434-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CPP53199; Wed, 17 Jun 2015 11:00:31 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml434-hub.china.huawei.com (10.82.67.225) with Microsoft SMTP Server id 14.3.158.1; Wed, 17 Jun 2015 11:00:22 +0800 From: Shannon Zhao To: Date: Wed, 17 Jun 2015 10:59:56 +0800 Message-ID: <1434510002-6976-3-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1434510002-6976-1-git-send-email-zhaoshenglong@huawei.com> References: <1434510002-6976-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 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, mjt@tls.msk.ru, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v3 2/8] hw/ppc/ppc440_bamboo.c: Store irq array in MachineState to 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+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.217.179 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 From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/ppc/ppc440_bamboo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/ppc440_bamboo.c b/hw/ppc/ppc440_bamboo.c index 778970a..944999d 100644 --- a/hw/ppc/ppc440_bamboo.c +++ b/hw/ppc/ppc440_bamboo.c @@ -203,6 +203,7 @@ static void bamboo_init(MachineState *machine) irqs[PPCUIC_OUTPUT_INT] = ((qemu_irq *)env->irq_inputs)[PPC40x_INPUT_INT]; irqs[PPCUIC_OUTPUT_CINT] = ((qemu_irq *)env->irq_inputs)[PPC40x_INPUT_CINT]; pic = ppcuic_init(env, irqs, 0x0C0, 0, 1); + machine->irqs = pic; /* SDRAM controller */ memset(ram_bases, 0, sizeof(ram_bases));