| 171 | |
| 172 | |
| 173 | void free_hostent(struct hostent *dst) |
| 174 | { |
| 175 | int r; |
| 176 | if (dst->h_name) pkg_free(dst->h_name); |
| 177 | if (dst->h_aliases){ |
| 178 | for(r=0; dst->h_aliases[r]; r++) { |
| 179 | pkg_free(dst->h_aliases[r]); |
| 180 | } |
| 181 | pkg_free(dst->h_aliases); |
| 182 | } |
| 183 | if (dst->h_addr_list){ |
| 184 | for (r=0; dst->h_addr_list[r];r++) { |
| 185 | pkg_free(dst->h_addr_list[r]); |
| 186 | } |
| 187 | pkg_free(dst->h_addr_list); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | |
| 192 |
no outgoing calls
no test coverage detected