diff options
author | Alistair Francis <Alistair.Francis@wdc.com> | 2018-11-05 19:44:41 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-11-08 08:41:06 -0800 |
commit | 00a014ac01feac875468d38c376f7e06f050f992 (patch) | |
tree | ae6d523b18ab3e60213af4bbf17c5e6729440c77 /hw/virtio | |
parent | a7ce790a029bd94eb320d8c69f38900f5233997e (diff) | |
download | qemu-00a014ac01feac875468d38c376f7e06f050f992.zip qemu-00a014ac01feac875468d38c376f7e06f050f992.tar.gz qemu-00a014ac01feac875468d38c376f7e06f050f992.tar.bz2 |
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>
Diffstat (limited to 'hw/virtio')
0 files changed, 0 insertions, 0 deletions