Recommiting missing change (for issue #7).
Fixed memleak in getaddrinfo.