Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b
.
This commit is contained in:
parent
50f25d8a4b
commit
1e4f2d28fc
|
@ -242,7 +242,6 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
|
|||
hostent->h_addr_list[i] = (char *) &addrs[i];
|
||||
hostent->h_addr_list[naddrs] = NULL;
|
||||
*host = hostent;
|
||||
free(addrs); /* since it isn't used anymore! */
|
||||
return ARES_SUCCESS;
|
||||
}
|
||||
free(hostent);
|
||||
|
|
Loading…
Reference in New Issue