Fix calling freeaddrinfo() on the wrong pointer.