Move freeaddrinfo() to inside of our loop; this prevents a memory leak