From cf143b571e55585b64fc013780a7a44dad67f1f5 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Thu, 18 Sep 2014 14:21:12 -0400 Subject: [PATCH] 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(+) diff --git a/deps/hiredis/net.c b/deps/hiredis/net.c index 9fe80bba..bdb84cee 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)); -- GitLab