diff options
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r-- | ares/ares_gethostbyname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index f675c51a9..00d78861d 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -239,7 +239,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac hostent.h_addr_list = addrs; callback(arg, ARES_SUCCESS, &hostent); - free(hostent.h_name); + free((char *)(hostent.h_name)); return 1; } |