fix test/test_getaddrinfo.c to use freeaddrinfo()