Fix getaddrinfo() memory leak
Fix getaddrinfo() memory leak

See antirez/redis#2012 for the leak causing unbounded memory growth.

charsyam/hiredis,liulingfree/hiredis,xjzhou/hiredis,tattsun/hiredis,hidebug/hiredis,redis/hiredis,Yhgenomics/hiredis,nokiddin/hiredis,jinguoli/hiredis,hidebug/hiredis,jqk6/hiredis,Yhgenomics/hiredis,charsyam/hiredis,h1048576/hiredis,rangan337/hiredis,thomaslee/hiredis,galdor/hiredis,tattsun/hiredis,jinguoli/hiredis,picrin/redisSamples,olgeni/hiredis,chenlicong0821/hiredis,rangan337/hiredis,redis/hiredis,owent-contrib/hiredis,redis/hiredis,xjzhou/hiredis,yiliaofan/hiredis,badboy/hiredis-win,olgeni/hiredis,thedrow/hiredis,galdor/hiredis,jinguoli/hiredis,arinal/hiredis,thomaslee/hiredis,owent-contrib/hiredis,chenlicong0821/hiredis,liulingfree/hiredis