diff options
Diffstat (limited to 'ares_writev.c')
-rw-r--r-- | ares_writev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_writev.c b/ares_writev.c index 9e8e2d6..008efdd 100644 --- a/ares_writev.c +++ b/ares_writev.c @@ -54,7 +54,7 @@ ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt) return (0); /* Allocate a temporary buffer to hold the data */ - buffer = malloc(bytes); + buffer = ares_malloc(bytes); if (!buffer) { SET_ERRNO(ENOMEM); @@ -71,7 +71,7 @@ ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt) /* Send buffer contents */ result = swrite(s, buffer, bytes); - free(buffer); + ares_free(buffer); return (result); } |