diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resolv/async_resolv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index 936fd802..7b7ca41e 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; |