Revision 1c5005c450928c77056621a561568cdea2ee24db authored by Philippe Mathieu-Daudé on 08 April 2024, 09:41:59 UTC, committed by Michael Tokarev on 10 April 2024, 17:32:12 UTC
AppleSMCData is allocated with g_new0() in applesmc_add_key():
release it with g_free().

Leaked since commit 1ddda5cd36 ("AppleSMC device emulation").

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2272
Reported-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20240408095217.57239-3-philmd@linaro.org>
(cherry picked from commit fc09ff2979defdcf8d00c2db94022d5d610e36ba)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
1 parent 6e7e387
History
File Mode Size
meson.build -rw-r--r-- 310 bytes
replay-audio.c -rw-r--r-- 2.3 KB
replay-char.c -rw-r--r-- 3.8 KB
replay-debugging.c -rw-r--r-- 8.3 KB
replay-events.c -rw-r--r-- 8.1 KB
replay-input.c -rw-r--r-- 4.5 KB
replay-internal.c -rw-r--r-- 6.9 KB
replay-internal.h -rw-r--r-- 6.3 KB
replay-net.c -rw-r--r-- 2.4 KB
replay-random.c -rw-r--r-- 1.1 KB
replay-snapshot.c -rw-r--r-- 2.8 KB
replay-time.c -rw-r--r-- 1.5 KB
replay.c -rw-r--r-- 9.7 KB
stubs-system.c -rw-r--r-- 2.0 KB

back to top