Free result of getaddrinfo in both success and failure cases