diff options
author | Alistair Francis <Alistair.Francis@wdc.com> | 2018-11-07 21:51:45 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-11-13 15:12:13 -0800 |
commit | 632fb2792b558219146eb48b3a8ee5b53026b3e5 (patch) | |
tree | 9807e3679cf490bee04a1d99fb2d315efb9117db /hw/riscv | |
parent | cb968d275c145467c8b385a3618a207ec111eab1 (diff) |
hw/riscv/virt: Free the test device tree node name
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'hw/riscv')
-rw-r--r-- | hw/riscv/virt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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("/uart@%lx", (long)memmap[VIRT_UART0].base); |