]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs: Plug a memory leak
authorMark Johnston <markj@FreeBSD.org>
Tue, 4 Oct 2022 16:46:39 +0000 (12:46 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 4 Oct 2022 17:05:54 +0000 (13:05 -0400)
commitd7eec79b7021b8d96bfc327326b84ad7a9edcfb8
tree4a83e9c162a5559f9ad875dad8df23d2d847165a
parent47218e711e70fdcca08b6f4bd05a60c986a87e41
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
usr.sbin/makefs/zfs/dsl.c