]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs: Fix handling of inherited mountpoints
authorMark Johnston <markj@FreeBSD.org>
Fri, 28 Oct 2022 20:51:00 +0000 (16:51 -0400)
committerMark Johnston <markj@FreeBSD.org>
Fri, 28 Oct 2022 21:00:22 +0000 (17:00 -0400)
commit752ba1004aa94e76df826fa803050fa7dffbcc78
treea5d65fb8eccc3ac91ab0a9629b1c6c714b63895b
parent854d066251a9e1731993416b1934e2002a29d395
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")
usr.sbin/makefs/zfs/dsl.c