MCPcopy Create free account
hub / github.com/RsyncProject/rsync / freeaddrinfo

Function freeaddrinfo

lib/getaddrinfo.c:323–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323void freeaddrinfo(struct addrinfo *res)
324{
325 struct addrinfo *next = NULL;
326
327 for (;res; res = next) {
328 next = res->ai_next;
329 if (res->ai_canonname) {
330 free(res->ai_canonname);
331 }
332 if (res->ai_addr) {
333 free(res->ai_addr);
334 }
335 free(res);
336 }
337}
338
339
340const char *gai_strerror(int errcode)

Callers 8

try_bind_localFunction · 0.85
open_socket_outFunction · 0.85
open_socket_inFunction · 0.85
client_nameFunction · 0.85
check_nameFunction · 0.85
match_addressFunction · 0.85
getaddr_info_single_addrFunction · 0.85
getaddr_info_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected