fix memory leak in dns unittest

This commit is contained in:
Benjamin Sergeant
2020-11-12 13:07:31 -08:00
parent 1350e9b307
commit 738c6040f7
3 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,11 @@ namespace ix
: resolveUnCancellable(errMsg, isCancellationRequested);
}
void DNSLookup::release(struct addrinfo* addr)
{
freeaddrinfo(addr);
}
struct addrinfo* DNSLookup::resolveUnCancellable(
std::string& errMsg, const CancellationRequest& isCancellationRequested)
{