From 56c1f8805e72cbc55d74a7fc46ff17fdc5d7882d Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Thu, 18 Sep 2014 14:21:12 -0400 Subject: Fix hiredis getaddrinfo leak Fixed in Redis by 1a5e5b6, but since that part of code is largely copy/paste from Redis, the fix needs to be ported over too. Closes #2012 --- deps/hiredis/net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'deps') diff --git a/deps/hiredis/net.c b/deps/hiredis/net.c index 9fe80bba7..bdb84ceed 100644 --- a/deps/hiredis/net.c +++ b/deps/hiredis/net.c @@ -300,6 +300,7 @@ static int _redisContextConnectTcp(redisContext *c, const char *addr, int port, break; } } + freeaddrinfo(bservinfo); if (!bound) { char buf[128]; snprintf(buf,sizeof(buf),"Can't bind socket: %s",strerror(errno)); -- cgit v1.2.1