HomeFreeBSD

bhyve: avoid resource leak

Description

bhyve: avoid resource leak

In bhyve_parse_config_option(), a string is allocated and passed to
nvlist_add_string() but not free'd afterwards.

Reported by: Coverity
CID: 1544049
Sponsored by: The FreeBSD Foundation

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1234

Details

Provenance
khorben_defora.orgAuthored on May 13 2024, 5:26 PM
impCommitted on May 16 2024, 5:19 PM
Parents
rG304a03275a65: sys/modules/dpdk_lpm4: do not build without INET
Branches
Unknown
Tags
Unknown