MCPcopy Create free account
hub / github.com/F-Stack/f-stack / freeaddrinfo

Function freeaddrinfo

tools/compat/getaddrinfo.c:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void
83freeaddrinfo(struct addrinfo *ai)
84{
85 struct addrinfo *next;
86
87 do {
88 next = ai->ai_next;
89 if (ai->ai_canonname)
90 free(ai->ai_canonname);
91 /* no need to free(ai->ai_addr) */
92 free(ai);
93 ai = next;
94 } while (ai);
95}
96
97/* Entries EAI_ADDRFAMILY (1) and EAI_NODATA (7) are obsoleted, but left */
98/* for backward compatibility with userland code prior to 2553bis-02 */

Callers 15

getaddrinfoFunction · 0.85
realhostname_saFunction · 0.85
settunnelFunction · 0.85
setpfsync_syncpeerFunction · 0.85
ifvxlan.cFile · 0.85
in6_getaddrFunction · 0.85
getaddrFunction · 0.85
tentry_fill_valueFunction · 0.85
compile_ruleFunction · 0.85
anetResolveFunction · 0.85
anetTcpGenericConnectFunction · 0.85
_anetTcpServerFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by 1