xemu/hw/riscv
Alistair Francis 00a014ac01
riscv: spike: Fix memory leak in the board init
Coverity caught a malloc() call that was never freed. This patch ensures
that we free the memory but also updates the allocation to use
g_strdup_printf() instead of malloc().

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-11-08 08:41:06 -08:00
..
Makefile.objs RISC-V Build Infrastructure 2018-03-07 08:30:28 +13:00
riscv_hart.c riscv_hart: Fix crash when introspecting the device 2018-07-19 09:05:48 -07:00
riscv_htif.c hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
sifive_clint.c RISC-V: Allow setting and clearing multiple irqs 2018-10-17 13:02:09 -07:00
sifive_e.c Drop "qemu:" prefix from error_report() arguments 2018-09-24 17:13:07 +02:00
sifive_plic.c RISC-V: Allow setting and clearing multiple irqs 2018-10-17 13:02:09 -07:00
sifive_prci.c SiFive RISC-V PRCI Block 2018-03-07 08:30:28 +13:00
sifive_test.c SiFive RISC-V Test Finisher 2018-03-07 08:30:28 +13:00
sifive_u.c RISC-V: Don't add NULL bootargs to device-tree 2018-10-17 13:02:30 -07:00
sifive_uart.c SiFive RISC-V UART Device 2018-03-07 08:30:28 +13:00
spike.c riscv: spike: Fix memory leak in the board init 2018-11-08 08:41:06 -08:00
virt.c RISC-V: Don't add NULL bootargs to device-tree 2018-10-17 13:02:30 -07:00