MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / free_hostent

Function free_hostent

proxy.c:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172
173void 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

Callers 4

free_proxyFunction · 0.85
clone_proxyFunction · 0.85
get_next_suFunction · 0.85
_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected