| 321 | |
| 322 | |
| 323 | void 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 | |
| 340 | const char *gai_strerror(int errcode) |
no outgoing calls
no test coverage detected