Fix a memleak in function DNSResolveTry in resolve.cpp.