libutil: Make free_iovec() zero its arguments, like the manpage claims

Approved by: kib
Differential Revision: https://reviews.freebsd.org/D59929
This commit is contained in:
Gleb Popov committed 2026-09-26 19:14:00 +03:00
1 parent 3963483523
commit e8da57256d
1 file changed
+2
+2
View File
@@ -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;
}