logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ares_free_hostent - Free host structure allocated by ares functions

Description

The ares_free_hostent function frees a structhostent allocated by one of the functions ares_parse_a_reply(3), ares_parse_aaaa_reply(3), or ares_parse_ptr_reply(3).

Name

ares_free_hostent - Free host structure allocated by ares functions

Notes

It is not necessary (and is not correct) to free the host structure passed to the callback functions for ares_gethostbyname(3) or ares_gethostbyaddr(3). 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) 23 July 1998 ARES_FREE_HOSTENT(3)

Synopsis

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

See Also