diff options
author | 2024-05-07 10:22:39 +0800 | |
---|---|---|
committer | 2024-05-09 00:07:21 +0200 | |
commit | 54c52ec719fb8c83bbde54cb87b58688ab27c166 (patch) | |
tree | 9f0c5ed5d2a7748ff561b700ef4684d4a7315d25 /scripts/coverage/compare_gcov_json.py | |
parent | hw/loongarch: move memory map to boot.c (diff) | |
download | qemu-54c52ec719fb8c83bbde54cb87b58688ab27c166.tar.xz qemu-54c52ec719fb8c83bbde54cb87b58688ab27c166.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions