[PULL,09/10] RISC-V: Add missing free for plic_hart_config

Message ID 20181011203115.18666-10-alistair.francis@wdc.com
State New
Headers show
Series
  • riscv-pullreq queue
Related show

Commit Message

Alistair Francis Oct. 11, 2018, 8:32 p.m.
From: Michael Clark <mjc@sifive.com>

Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cc: Alistair Francis <Alistair.Francis@wdc.com>
Signed-off-by: Michael Clark <mjc@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 hw/riscv/virt.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 6d91810bcf..3f30eb74d2 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -457,6 +457,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)