HomeFreeBSD

makefs: Fix handling of inherited mountpoints

Description

makefs: Fix handling of inherited mountpoints

Commit d7eec79b7021 overlooked the fact that
nvlist_find(DATA_TYPE_STRING) does not provide a nul-terminated string.
Fix the leak a different way.

Fixes: d7eec79b7021 ("makefs: Plug a memory leak")

Details

Provenance
markjAuthored on Oct 28 2022, 8:51 PM
Parents
rG854d066251a9: wg: Trim compat shims for versions older than current stable/13.
Branches
Unknown
Tags
Unknown