mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 09:39:33 +00:00
Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b
.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user