|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH] cpu: fix memleak of 'halt_cond' and 'thread' |
Date: | Thu, 13 Jun 2024 11:39:57 +0200 |
User-agent: | Mozilla Thunderbird |
On 12/6/24 19:04, Matheus Tavares Bernardino wrote:
Since a4c2735f35 (cpu: move Qemu[Thread|Cond] setup into common code, 2024-05-30) these fields are now allocated at cpu_common_initfn(). So let's make sure we also free them at cpu_common_finalize(). Furthermore, the code also frees these on round robin, but we missed 'halt_cond'. Signed-off-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com> --- accel/tcg/tcg-accel-ops-rr.c | 1 + hw/core/cpu-common.c | 3 +++ 2 files changed, 4 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |