discover/paths: Cleanup res after getaddrinfo