summaryrefslogtreecommitdiff
path: root/deps/cares/src/ares_free_hostent.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/cares/src/ares_free_hostent.c')
-rw-r--r--deps/cares/src/ares_free_hostent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/cares/src/ares_free_hostent.c b/deps/cares/src/ares_free_hostent.c
index 7f448828c8..cfc5f81feb 100644
--- a/deps/cares/src/ares_free_hostent.c
+++ b/deps/cares/src/ares_free_hostent.c
@@ -30,12 +30,12 @@ void ares_free_hostent(struct hostent *host)
if (!host)
return;
- free((char *)(host->h_name));
+ ares_free((char *)(host->h_name));
for (p = host->h_aliases; *p; p++)
- free(*p);
- free(host->h_aliases);
- free(host->h_addr_list[0]); /* no matter if there is one or many entries,
+ ares_free(*p);
+ ares_free(host->h_aliases);
+ ares_free(host->h_addr_list[0]); /* no matter if there is one or many entries,
there is only one malloc for all of them */
- free(host->h_addr_list);
- free(host);
+ ares_free(host->h_addr_list);
+ ares_free(host);
}