Don't double-free in getaddrinfo

Revised code from a6bfa5a (OS-3332 getaddrinfo mistakingly
IPv6 maps addresses)