diff options
Diffstat (limited to 'ares/ares_free_hostent.c')
-rw-r--r-- | ares/ares_free_hostent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_free_hostent.c b/ares/ares_free_hostent.c index c52428109..7763df7dc 100644 --- a/ares/ares_free_hostent.c +++ b/ares/ares_free_hostent.c @@ -29,7 +29,7 @@ void ares_free_hostent(struct hostent *host) { char **p; - free(host->h_name); + free((char *)(host->h_name)); for (p = host->h_aliases; *p; p++) free(*p); free(host->h_aliases); |