diff options
author | Alistair Francis | 2018-11-05 20:44:41 +0100 |
---|---|---|
committer | Palmer Dabbelt | 2018-11-08 17:41:06 +0100 |
commit | 00a014ac01feac875468d38c376f7e06f050f992 (patch) | |
tree | ae6d523b18ab3e60213af4bbf17c5e6729440c77 /slirp/tcp_input.c | |
parent | tcg/tcg-op.h: Add multiple include guard (diff) | |
download | qemu-00a014ac01feac875468d38c376f7e06f050f992.tar.gz qemu-00a014ac01feac875468d38c376f7e06f050f992.tar.xz qemu-00a014ac01feac875468d38c376f7e06f050f992.zip |
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 'slirp/tcp_input.c')
0 files changed, 0 insertions, 0 deletions