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>
This commit is contained in:
parent
cb968d275c
commit
632fb2792b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user