qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-riscv] [PATCH for 3.1 v1 1/1] hw/riscv/virt: Free the test device


From: Alistair Francis
Subject: [Qemu-riscv] [PATCH for 3.1 v1 1/1] hw/riscv/virt: Free the test device tree node name
Date: Wed, 7 Nov 2018 21:51:45 +0000

Signed-off-by: Alistair Francis <address@hidden>
---
 hw/riscv/virt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 4a137a503c..2b38f89070 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("/address@hidden",
         (long)memmap[VIRT_UART0].base);
-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]