summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/resolv/async_resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index 936fd8026..7b7ca41e5 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -927,7 +927,7 @@ resolv_gethostbyname_dns_parse(struct gethostbyname_dns_state *state,
state->rhostent = resolv_copy_hostent_ares(state, hostent,
state->family,
addr, naddrttls);
- free(hostent);
+ ares_free_hostent(hostent);
if (state->rhostent == NULL) {
ret = ENOMEM;
goto fail;