Name

ares_free_hostent - Free host structure allocated by ares functions

Synopsis

#include <ares.h>
 
void ares_free_hostent(struct hostent *host)

Description

The ares_free_hostent function frees a struct hostent allocated by one of the functions ares_parse_a_reply, ares_parse_aaaa_reply, or ares_parse_ptr_reply.

Notes

It is not necessary (and is not correct) to free the host structure passed to the callback functions for ares_gethostbyname or ares_gethostbyaddr. c-ares will automatically free such host structures when the callback returns.

See also

ares_parse_a_reply(3), ares_parse_aaaa_reply(3), ares_parse_ptr_reply(3), ares_parse_ns_reply(3)

This HTML page was made with roffit.