summaryrefslogtreecommitdiffstats
path: root/src/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolv')
-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 268d266a4..046515118 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -1051,7 +1051,7 @@ resolv_gethostbyname_dns_parse(struct gethostbyname_dns_state *state,
* c-ares, but we need to handle it gracefully.
*/
if (state->rhostent->addr_list == NULL) {
- talloc_free(state->rhostent);
+ talloc_zfree(state->rhostent);
return ENOENT;
}
}