summaryrefslogtreecommitdiff
path: root/ares_writev.c
diff options
context:
space:
mode:
authorYu Jiung <jiung.yu@samsung.com>2016-11-10 16:59:08 +0900
committerYu Jiung <jiung.yu@samsung.com>2016-11-10 16:59:08 +0900
commit6e8e7a899a742f7f170ff6f07a26cf4832f4fdc9 (patch)
tree81f0750d91aa467df3ee81cf30d22a65db2e6685 /ares_writev.c
parentd82f8426a5e255f0533f07ee458870ba124f90e7 (diff)
parent45e88a8337839e5fd88519bc55467053d521c9f6 (diff)
downloadc-ares-6e8e7a899a742f7f170ff6f07a26cf4832f4fdc9.tar.gz
c-ares-6e8e7a899a742f7f170ff6f07a26cf4832f4fdc9.tar.bz2
c-ares-6e8e7a899a742f7f170ff6f07a26cf4832f4fdc9.zip
Conflicts: packaging/c-ares.spec Change-Id: Id23d5351f77b4520d8bbcc4c0e1eb09136018b58
Diffstat (limited to 'ares_writev.c')
-rw-r--r--ares_writev.c4
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);
}