freeaddrinfo - release address information memory
#include <sys/socket.h> #include <netdb.h> void freeaddrinfo(struct addrinfo *ai);
The freeaddrinfo() function frees one or more addrinfo structures returned by getaddrinfo(3C), along with any additional storage associated with those structures. If the ai_next member of the structure is not null, the entire list of structures is freed. The freeaddrinfo () function supports the freeing of arbitrary sublists of an addrinfo list originally returned by getaddrinfo().
See attributes(7) for descriptions of the following attributes:
|
getaddrinfo(3C), netdb.h(3HEAD), attributes(7), standards(7)
Gilligan, R. RFC 3493, Basic Socket Interface Extensions for IPv6. Network Working Group. February 2003. https://tools.ietf.org/html/rfc3493
The freeaddrinfo() function was added to Oracle Solaris in the Solaris 8 release.