From patchwork Mon Oct 8 18:25:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 10631259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF3291867 for ; Mon, 8 Oct 2018 18:30:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B276829733 for ; Mon, 8 Oct 2018 18:30:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4E1B2977A; Mon, 8 Oct 2018 18:30:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 37A9129733 for ; Mon, 8 Oct 2018 18:30:08 +0000 (UTC) Received: from localhost ([::1]:47793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9aIB-0008UK-GW for patchwork-qemu-devel@patchwork.kernel.org; Mon, 08 Oct 2018 14:30:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9aE3-0004my-CQ for qemu-devel@nongnu.org; Mon, 08 Oct 2018 14:25:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9aE0-0007sA-6w for qemu-devel@nongnu.org; Mon, 08 Oct 2018 14:25:51 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:49719) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g9aDz-0007rB-TO for qemu-devel@nongnu.org; Mon, 08 Oct 2018 14:25:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1539023148; x=1570559148; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lOqa58fOZwbBmF9IS0sUhBo3H6l7c5bY48tQY6Udp34=; b=oX2lGi3SAHf82txqrSsJSx3PWWIg0VD9nUi1wQvLPwdupx3KwLvlYVGC XKOZfkm3ueW6RHegKvQS603xh2MxQegZ+uomKNhvY/a9ZXWaPYcAr9d5b nCEg7DKmcs9boAbBfNejb1D+X4QG2nr7VzvpbBR4fsmuzYDNdktVl6Ptk wHHgaRo260EmH8UPRWP8ZwnCTxBJaHwqZFHPUvcS5VATFqAma0k+9Biu9 pZdl9lbITxURnsYBZXLp9wPDYnZ5cV+cE+PuFa6RHkd50AZ53rrS4fh8w 0y80/4xJBrwxRJCf+Sqri+OI8Ye2Qi/dNf5u2+18mo7eRZ1lYUKtJu7tE w==; X-IronPort-AV: E=Sophos;i="5.54,357,1534780800"; d="scan'208";a="96068115" Received: from mail-co1nam04lp0055.outbound.protection.outlook.com (HELO NAM04-CO1-obe.outbound.protection.outlook.com) ([216.32.181.55]) by ob1.hgst.iphmx.com with ESMTP; 09 Oct 2018 02:25:47 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HXZD+BbcKE/XM8fw7eV+BTUNfc7UMgqC2wzt6KGmAmE=; b=Ks5kDW1oy8IPRz/JS1B1iaxyAngHfP9gHsyIkRY9GQayzUBoq8XRt2Qo+5vh6/tzOU04t6R0LJLZVjS7ZHY2Cbedig+uEvLKR76f80Cy/cWu+sYmxigt3lMEipWD7WxSbdXyRjjLDtAE4FJvAIUBnqBwKUypXSqhjKBOIv/KcdQ= Received: from MWHPR04MB0401.namprd04.prod.outlook.com (10.173.48.18) by MWHPR04MB0320.namprd04.prod.outlook.com (10.169.202.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.23; Mon, 8 Oct 2018 18:25:46 +0000 Received: from MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::f94c:102e:8dce:7c02]) by MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::f94c:102e:8dce:7c02%6]) with mapi id 15.20.1207.024; Mon, 8 Oct 2018 18:25:46 +0000 From: Alistair Francis To: "qemu-devel@nongnu.org" , "mjc@sifive.com" Thread-Topic: [PATCH v1 4/5] RISC-V: Add missing free for plic_hart_config Thread-Index: AQHUXzRUxVM0QvCWiEe8KcFLxIgKRw== Date: Mon, 8 Oct 2018 18:25:45 +0000 Message-ID: <1813e888a55667b7097df2a75fa626c98390240d.1539023064.git.alistair.francis@wdc.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: BYAPR07CA0051.namprd07.prod.outlook.com (2603:10b6:a03:60::28) To MWHPR04MB0401.namprd04.prod.outlook.com (2603:10b6:300:70::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR04MB0320; 6:3CDgrUDrWEaR6bvVmJnBYrAGBQxnCIOpg5yNAg51eAUEoO+rEsGeoK+Ft2HkQRJAbYQw4mhELH3GPTA7wVxU3rIc+XkxfUxVKkVIFE2IsOhALT5YYqPwhxpPdgZ6sSo3abGgG5Wvoj+ajAfG7ckRLZ0edp8rl+/LlQzrXFDmMsQxpee6q11pi2iM5xSeSwEruHYjUMmBGOwV4MvRQR299u/OdzIqRsZ7K3JwXpkqtSVydWYDh8csAU3PPZ2OdfmL9T6jm4Jo2uzSZznp1IlzUfVb27aXA4QXSaDCA48ZuNH/dDEMtdf3oiVv2/l+tDImHMp4RLV478GVlllJJTgh0QxkMuGQ8w85uTSrcyN372WDQEo+KLcaFu4yn6kGs/GPLv4yMr7KcPkRkrxSMKxyAUO9eX78vW2I+2Jo3XczKbdvH79ExbpzLvE0BIpDKTQd6jV3SSWAT1aoVsnDxFc3Pg==; 5:dXon4Uf4iIk9IjeOy/LvBfT2PA6BNytpP/Z/3meOffSWLnzqIlNVUllDOH9p4Y3e+ZOdnpur6GMohR13CDUw346YV+AUdiYnH7c2I1Vu4AwJeuvdO9WIvXh9omvn4wR49blZMt4dSdbPzj8E2E87yVmmKEQ+8HUMGjDpDpk701M=; 7:EBbwvTtAapTy/FwqnkDuf724nME+nBD0gDSaZJRTDkscZWW62L095UyS07NYiynTV7n8ghWoOxm6ppIK7jd4s8I5r9knD3EkevcbyigAkHcZklVMswSsFkbYx6s5qT+OrKqP5XoyjcA5nYyC9xWZJ9epDraJfO2wI0LDv0tDP5d8w4wMBo1JFBfNtzMJzUOR94fHI9wQbO3EdgZBSmpGHY5HlByaNIqHfcazA0/GM2HvCYlzODFYEt8XUw+PFTKq x-ms-office365-filtering-correlation-id: 8c5b3910-a778-4530-8fc3-08d62d4b769e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:MWHPR04MB0320; x-ms-traffictypediagnostic: MWHPR04MB0320: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051); SRVR:MWHPR04MB0320; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0320; x-forefront-prvs: 081904387B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(376002)(346002)(366004)(39860400002)(199004)(189003)(106356001)(186003)(102836004)(26005)(71200400001)(5660300001)(71190400001)(68736007)(6116002)(81156014)(118296001)(2906002)(50226002)(25786009)(305945005)(3846002)(7736002)(8676002)(478600001)(39060400002)(105586002)(8936002)(81166006)(2501003)(14454004)(6436002)(54906003)(110136005)(86362001)(6486002)(316002)(53936002)(99286004)(386003)(52116002)(6506007)(76176011)(446003)(6512007)(44832011)(476003)(36756003)(5250100002)(11346002)(486006)(72206003)(4326008)(66066001)(97736004)(2616005)(256004)(2900100001); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0320; H:MWHPR04MB0401.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-microsoft-antispam-message-info: 23dSkeTOg7KkoCwvoiH6jbKb9WO46qmME7CmAtRJr4ZX6mSA4MidvRGdShVDtNQCBeqmxKRllc1uCfzS8KJ/4LTAHz2FujLFVY4Osz0rRPsY10g5lia4ZZY3Icxv+gpRDaNC820YKwPTNOa3/OWe4NfkZXECVPnfcd+NRB8vkB9XSDn+3nKdCmztk6hjVzHeok/XneWdC1/oVTmfk24VtUs1mAFWbDxJdPrHRD/GGDvYdCXoyQV2WCFqDPOB+PeKbWzGMhctBYrAqY2zaXn6qzaY08weuFfqGJVsHv4m1hw3czpBgwi26BcvSzCL12yhPjOdiQXfNzQqvnwDXo+3mGls4Qwe04mWLcgq3ELRzP8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c5b3910-a778-4530-8fc3-08d62d4b769e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2018 18:25:45.9267 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0320 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.153.141 Subject: [Qemu-devel] [PATCH v1 4/5] RISC-V: Add missing free for plic_hart_config X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "alistair23@gmail.com" , Alistair Francis Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Clark Cc: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Palmer Dabbelt --- hw/riscv/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 005169eabc..6bd723dc3a 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -385,6 +385,8 @@ static void riscv_virt_board_init(MachineState *machine) serial_mm_init(system_memory, memmap[VIRT_UART0].base, 0, qdev_get_gpio_in(DEVICE(s->plic), UART0_IRQ), 399193, serial_hd(0), DEVICE_LITTLE_ENDIAN); + + g_free(plic_hart_config); } static void riscv_virt_board_machine_init(MachineClass *mc)