Fix leak in getaddrinfo usage for HTTP listener