HomeFreeBSD

makefs: Plug a memory leak

Description

makefs: Plug a memory leak

nvlist_find_string() would return a copy of the found value, but callers
assumed they would have to make their own copy. It's simpler to change
nvlist_find_string() than it is to change callers, so do that.

Reported by: Coverity

Details

Provenance
markjAuthored on Oct 4 2022, 4:46 PM
Parents
rG47218e711e70: Include opt_platform.h to ensure FDT is defined
Branches
Unknown
Tags
Unknown