aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-07-23 13:08:33 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-07-23 20:30:36 +0200
commit0c2086bc7360565dfb9933181dafaefe2c94cddf (patch)
treeee16980fd2147c028da52f998503f6e33d5d3a49 /module-common.c
parent2465c89fb983eed670007742bd68c7d91b6d6f85 (diff)
downloadqemu-0c2086bc7360565dfb9933181dafaefe2c94cddf.zip
qemu-0c2086bc7360565dfb9933181dafaefe2c94cddf.tar.gz
qemu-0c2086bc7360565dfb9933181dafaefe2c94cddf.tar.bz2
hw/intc/loongson_ipi: Fix resource leak
Once initialised, QOM objects can be realized and unrealized multiple times before being finalized. Resources allocated in REALIZE must be deallocated in an equivalent UNREALIZE handler. Free the CPU array in loongson_ipi_unrealize() instead of loongson_ipi_finalize(). Cc: qemu-stable@nongnu.org Fixes: 5e90b8db382 ("hw/loongarch: Set iocsr address space per-board rather than percpu") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Song Gao <gaosong@loongson.cn> Message-Id: <20240723111405.14208-3-philmd@linaro.org>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions