summaryrefslogtreecommitdiff
path: root/ot_iovec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_iovec.c')
-rw-r--r--ot_iovec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ot_iovec.c b/ot_iovec.c
index e2cdd4b..bab19e3 100644
--- a/ot_iovec.c
+++ b/ot_iovec.c
@@ -5,9 +5,7 @@
5 5
6/* System */ 6/* System */
7#include <stdlib.h> 7#include <stdlib.h>
8#include <sys/types.h>
9#include <sys/uio.h> 8#include <sys/uio.h>
10#include <unistd.h>
11 9
12/* Libowfat */ 10/* Libowfat */
13 11
@@ -58,6 +56,7 @@ void iovec_free(size_t *iovec_entries, struct iovec **iovector) {
58 size_t i; 56 size_t i;
59 for (i = 0; i < *iovec_entries; ++i) 57 for (i = 0; i < *iovec_entries; ++i)
60 free(((*iovector)[i]).iov_base); 58 free(((*iovector)[i]).iov_base);
59 free(*iovector);
61 *iovector = NULL; 60 *iovector = NULL;
62 *iovec_entries = 0; 61 *iovec_entries = 0;
63} 62}