From patchwork Wed Oct 17 21:54:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10646107 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 F166713B0 for ; Wed, 17 Oct 2018 22:03:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E269328A10 for ; Wed, 17 Oct 2018 22:03:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D666428A20; Wed, 17 Oct 2018 22:03:48 +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 3F31B28A10 for ; Wed, 17 Oct 2018 22:03:48 +0000 (UTC) Received: from localhost ([::1]:39279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCtus-00070P-9d for patchwork-qemu-devel@patchwork.kernel.org; Wed, 17 Oct 2018 18:03:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCttn-0006QK-Pt for qemu-devel@nongnu.org; Wed, 17 Oct 2018 18:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCttk-0005hI-LD for qemu-devel@nongnu.org; Wed, 17 Oct 2018 18:02:39 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:38585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCttk-0005aa-5J for qemu-devel@nongnu.org; Wed, 17 Oct 2018 18:02:36 -0400 Received: by mail-pl1-x634.google.com with SMTP id q19-v6so10255329pll.5 for ; Wed, 17 Oct 2018 15:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:cc:from:to; bh=XnHOQNQvIUYX7DJZBxLIfE25AAiLGvzD7yczYedw0R4=; b=Y6A261HCfKkzqJLJlIKrdQ66Zc+mYd1ZXxN1F7d+vmZAJbzC9zqso0QefrwX6XJ7CK 1M0tJnifgxZjNJzQhrdrC6e4QZwExdzrf6AcaCXE4CoBYz0stBOQRx/HYWhFDSbf598i BiXeUf+Z6OiANkiNWXfy72MQMFIUpO+BATh9kbEGEMg7TI2ORYEgqQ/2t7G73iSE29a+ k2m0DUyGLtIRiQh3lU7HwIV3TfkJ4HQcLWRpflKIoWcenE+Z5+JR4s4rLuaZw3cmsLfy PqNimtWPSOXbwBiQv4vvGITQr5/51b///9aL3CYXN/YBoMdPDVurAPwH5cD0JzYu5yEM b9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=XnHOQNQvIUYX7DJZBxLIfE25AAiLGvzD7yczYedw0R4=; b=jfFXgmg4Vv6NjSOCKUy/xIhkgLwBqRnfuaVhCZxvK3SmqJ0XbXfiUsMJV1qbhuDDg5 joQH5Tccfzg9hPi8XLHx5SpAZVn+eP51JxClwZnAZ4cEbzZNSrCJOLe25TxVs4JBkeJ+ ck5RACtESrqaultN3GyqTZA+AFu7dfG4fcQXZ4egPWt5/jjkyhlZXgDT0q5hT6ti8icJ +v2uCl12Il7MFI8GpMuSatXUVopsexHa/amVUlP9BDEjkPM6IHkhSnRLPEXXlYPi1D71 ODcnHFyg3nfFemzMP5TgIAQjJiMco3fgiZefRR/mq9H3ySa7EKYxrWOI0YJQK7ciIg4L bI0A== X-Gm-Message-State: ABuFfojcU0a3J3O4bvNrU6TeXBhCPWuULG9GvicYvlY6hvATbbnemRjl jPeaBNnkVPLc1i+adH4ri0WGk0yCk58= X-Google-Smtp-Source: ACcGV604Lie2L9TYGfq1OsTCkWZD2+u5DcVlqnr1AX/jLFrdEaDWI87qKj4hi23of8nc06GqHTq5fQ== X-Received: by 2002:a17:902:9347:: with SMTP id g7-v6mr27488602plp.90.1539813748271; Wed, 17 Oct 2018 15:02:28 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id y24-v6sm21693770pfn.123.2018.10.17.15.02.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 15:02:27 -0700 (PDT) Date: Wed, 17 Oct 2018 14:54:21 -0700 Message-Id: <20181017215422.3973-5-palmer@sifive.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181017215422.3973-1-palmer@sifive.com> References: <20181017215422.3973-1-palmer@sifive.com> MIME-Version: 1.0 From: Palmer Dabbelt To: Peter Maydell X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::634 Subject: [Qemu-devel] [PULL 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: Michael Clark , Alistair Francis , qemu-devel@nongnu.org, Palmer Dabbelt 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 Signed-off-by: Michael Clark Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Palmer Dabbelt Signed-off-by: Alistair Francis Signed-off-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 005169eabcb4..6bd723dc3ad9 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)