From patchwork Tue Nov 13 23:50:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10681665 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 88A0B13B5 for ; Tue, 13 Nov 2018 23:54:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79A3B2A65E for ; Tue, 13 Nov 2018 23:54:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ACA32A93F; Tue, 13 Nov 2018 23:54:42 +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 1FE162A65E for ; Tue, 13 Nov 2018 23:54:42 +0000 (UTC) Received: from localhost ([::1]:56547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMiW1-00060d-G0 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Nov 2018 18:54:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMiSv-0003T6-6P for qemu-devel@nongnu.org; Tue, 13 Nov 2018 18:51:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMiSr-0006aY-5k for qemu-devel@nongnu.org; Tue, 13 Nov 2018 18:51:28 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:44479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMiSp-0006Xe-8h for qemu-devel@nongnu.org; Tue, 13 Nov 2018 18:51:24 -0500 Received: by mail-pf1-x435.google.com with SMTP id b81-v6so6389062pfe.11 for ; Tue, 13 Nov 2018 15:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:cc:from:to; bh=kKTGbZL7bN1GM/CR1Si/5nLh5T86DrU/+KfJ0CFSfOM=; b=HlwJOR5uMf5hw4ZyhgM3liloIvu1g+Uncz+igpbRUYWKlBEbPdOeZeDhYjq5pQVFih eN+gBXxn6Dczz8j0Y8s24TsIA1LPVwLEBlpn0CG07U1sGe3qduOOv+e5i74QFgJ1tDiU n8sS2kHnRSuUGVkeecapSj5GenBu+CnGL+0rD+mx7HUcHzP57aZtQJsYCOlG93ROS3b6 BcPqleR/zcwfV/ORPF5szvqEWO1QOdlPn24Ft0SFBjM23IR8lHvWrxLntl20Hxd8YtG6 MgU0rEpT4jGzRvnWQ0Oj+OaxEzzDoKKNyMv1A+VJuxIQDQ4+4AE4OmEfVBwVDsG0Dqgj plNg== 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 :cc:from:to; bh=kKTGbZL7bN1GM/CR1Si/5nLh5T86DrU/+KfJ0CFSfOM=; b=AOESKqAcs5jLlCtmiNeUAxtl2OJGzzjWQ8HXQkyU61RTh4j32z6Rh/U0O2c7rq1tOT 3sGXKrOS1r90fj8clOZP7C1VTbmv+0818i3R7iz/5v8GeJvK1Pt8iPLXXkxbFBssZYnU eOOW4yU/yDd9Mz/Szg8/2QpsF25sloj2E6qN98/di/O6QFVMB4F/iegqwHSa3IaF7tjF G7MFqI9il7W68K+6g9F8ldb1YAUSmenUVDRMqeaMCgs72yaxVOmuzCY0mz2UgKZGoSzc KCGlxX+ukMrI9kV6QcZlMb392hhl7s2V0Su2QbpFdSYP1FhAkuQr+fgDO06hpsbWKl9l 5nkA== X-Gm-Message-State: AGRZ1gJAJO5rhV4ae9xEG9yWAlAK6peXhH4ywuiGXMSdiXEH0aJSeE35 L8v1UuHBGHHTS8DpFxm6mLLQqJ5AJq/bIg== X-Google-Smtp-Source: AJdET5c4hBzB78aEtyVon7fZ3Iw+bePY0YCmb1T+lwtl7UIWa2a4RguviLa2bcOZpbxqf67FNln9vA== X-Received: by 2002:a62:401:: with SMTP id 1-v6mr7088968pfe.156.1542153078569; Tue, 13 Nov 2018 15:51:18 -0800 (PST) Received: from localhost ([64.114.255.114]) by smtp.gmail.com with ESMTPSA id c14-v6sm24420708pfc.92.2018.11.13.15.51.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 15:51:17 -0800 (PST) Date: Tue, 13 Nov 2018 15:50:42 -0800 Message-Id: <20181113235045.14155-2-palmer@sifive.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181113235045.14155-1-palmer@sifive.com> References: <20181113235045.14155-1-palmer@sifive.com> From: Palmer Dabbelt To: qemu-riscv@nongnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::435 Subject: [Qemu-devel] [PULL 1/4] hw/riscv/virt: Free the test device tree node name 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: Palmer Dabbelt , Alistair Francis , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Palmer Dabbelt --- hw/riscv/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 4a137a503c8a..2b38f890702c 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -240,6 +240,7 @@ static void *create_fdt(RISCVVirtState *s, const struct MemmapEntry *memmap, qemu_fdt_setprop_cells(fdt, nodename, "reg", 0x0, memmap[VIRT_TEST].base, 0x0, memmap[VIRT_TEST].size); + g_free(nodename); nodename = g_strdup_printf("/uart@%lx", (long)memmap[VIRT_UART0].base);