mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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:
1 parent
3963483523
commit
e8da57256d
1 file changed
+2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user