You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/uefi
GuoHan Zhao b6478122f0 hw/uefi/ovmf-log: Fix memory leak in hmp_info_firmware_log
The FirmwareLog object returned by qmp_query_firmware_log() was
not being freed, causing a memory leak.

Use g_autoptr to ensure the object is automatically freed when
it goes out of scope.

Fixes: c8aa812031 ("hw/uefi: add 'info firmware-log' hmp monitor command.")
Signed-off-by: GuoHan Zhao <zhaoguohan@kylinos.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251023063106.9834-1-zhaoguohan_salmon@163.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
1 month ago
..
Kconfig hw/uefi-vars-sysbus: allow for loongarch virt 9 months ago
LIMITATIONS.md docs: add uefi variable service documentation 9 months ago
hardware-info.c
meson.build hw/uefi: add query-firmware-log monitor command 1 month ago
ovmf-log.c hw/uefi/ovmf-log: Fix memory leak in hmp_info_firmware_log 1 month ago
trace-events hw/uefi: add trace-events 9 months ago
trace.h hw/uefi: Create and use trace.h wrapper header 5 months ago
var-service-auth.c hw/uefi: add var-service-auth.c 9 months ago
var-service-core.c hw/uefi: clear uefi-vars buffer in uefi_vars_write callback 4 months ago
var-service-guid.c
var-service-json.c hw/uefi: open json file in binary mode 4 months ago
var-service-pkcs7-stub.c hw/uefi: add var-service-pkcs7-stub.c 9 months ago
var-service-pkcs7.c hw/uefi: add var-service-pkcs7.c 9 months ago
var-service-policy.c hw/uefi: Create and use trace.h wrapper header 5 months ago
var-service-siglist.c hw/uefi: add var-service-siglist.c 9 months ago
var-service-sysbus.c qom: Have class_init() take a const data argument 7 months ago
var-service-utils.c hw/uefi: Create and use trace.h wrapper header 5 months ago
var-service-vars.c hw/uefi: check access for first variable 4 months ago