HomeFreeBSD

bhyve: avoid resource leak in error path

Description

bhyve: avoid resource leak in error path

In e820_finalize(), the e820_fwcfg_item variable, containing the
etc/e820 file (for the e820 table from the BIOS) is not free()'d when it
could not be added to the QEMU firmware configuration device (fw_cfg).

Reported by: Coverity Scan
CID: 1522761
Reviewed by: corvink, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45223

Details

Provenance
khorben_defora.orgAuthored on May 16 2024, 4:55 PM
emasteCommitted on May 17 2024, 4:26 PM
Reviewer
corvink
Differential Revision
D45223: bhyve: avoid resource leak in error path
Parents
rG4ab122e8ef12: fib_dxr: check if cached fib_data matches the new request in dxr_init()
Branches
Unknown
Tags
Unknown