]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/x86: Don't leak "pc.bios" memory region
authorBernhard Beschow <shentey@gmail.com>
Wed, 8 May 2024 17:55:05 +0000 (19:55 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 May 2024 22:07:15 +0000 (00:07 +0200)
commit865d95321ffc8d9941e33000b10140550f094556
tree903759c2463141aff5a24d611125e571a0759987
parent32d3ee87a17fc91e981a23dba94855bff89f5920
hw/i386/x86: Don't leak "pc.bios" memory region

Fix the leaking in x86_bios_rom_init() by adding a "bios" attribute to
X86MachineState. Note that it is only used in the -bios case.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20240508175507.22270-5-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i386/x86.c
include/hw/i386/x86.h