"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/ares_freeaddrinfo.c" between
c-ares-1.17.1.tar.gz and c-ares-1.17.2.tar.gz

About: c-ares is a C library for asynchronous DNS requests (including name resolves).

ares_freeaddrinfo.c  (c-ares-1.17.1):ares_freeaddrinfo.c  (c-ares-1.17.2)
skipping to change at line 54 skipping to change at line 54
{ {
current = head; current = head;
head = head->ai_next; head = head->ai_next;
ares_free(current->ai_addr); ares_free(current->ai_addr);
ares_free(current); ares_free(current);
} }
} }
void ares_freeaddrinfo(struct ares_addrinfo *ai) void ares_freeaddrinfo(struct ares_addrinfo *ai)
{ {
if (ai == NULL)
return;
ares__freeaddrinfo_cnames(ai->cnames); ares__freeaddrinfo_cnames(ai->cnames);
ares__freeaddrinfo_nodes(ai->nodes); ares__freeaddrinfo_nodes(ai->nodes);
ares_free(ai); ares_free(ai);
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)