The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/src/commit/?id=e8da57256d79bea8cfc25e5d838978c9fd1fc0a5
commit e8da57256d79bea8cfc25e5d838978c9fd1fc0a5 Author: Gleb Popov <[email protected]> AuthorDate: 2026-09-23 15:32:55 +0000 Commit: Gleb Popov <[email protected]> CommitDate: 2026-09-26 16:14:00 +0000 libutil: Make free_iovec() zero its arguments, like the manpage claims Approved by: kib Differential Revision: https://reviews.freebsd.org/D59929 --- lib/libutil/mntopts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libutil/mntopts.c b/lib/libutil/mntopts.c index 0412007ebcdf..4a019e877931 100644 --- a/lib/libutil/mntopts.c +++ b/lib/libutil/mntopts.c @@ -319,4 +319,6 @@ free_iovec(struct iovec **iov, int *iovlen) for (i = 0; i < *iovlen; i += 2) free((*iov)[i].iov_base); free(*iov); + *iov = NULL; + *iovlen = 0; }
