qemu/hw/loongarch
Song Gao 54c52ec719 hw/loongarch/virt: Fix memory leak
The char pointer 'ramName' point to a block of memory,
but never free it. Use 'g_autofree' to automatically free it.

Resolves: Coverity CID 1544773

Fixes: 0cf1478d6 ("hw/loongarch: Add numa support")
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240507022239.3113987-1-gaosong@loongson.cn>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-05-09 00:07:21 +02:00
..
acpi-build.c loongarch: Change the UEFI loading mode to loongarch 2024-02-29 19:32:45 +08:00
boot.c hw/loongarch: move memory map to boot.c 2024-05-09 00:07:21 +02:00
fw_cfg.c hw/loongarch: Support fw_cfg dma function 2022-09-19 20:01:40 +08:00
fw_cfg.h hw/loongarch: Add fw_cfg table support 2022-07-19 22:55:10 +05:30
Kconfig loongarch: switch boards to "default y" 2024-05-03 15:47:47 +02:00
meson.build hw/loongarch: Move boot functions to boot.c 2024-04-29 10:25:56 +08:00
virt.c hw/loongarch/virt: Fix memory leak 2024-05-09 00:07:21 +02:00