diff options
author | Matt Stancliff <matt@genges.com> | 2014-09-18 14:21:12 -0400 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2014-09-18 14:47:55 -0400 |
commit | 56c1f8805e72cbc55d74a7fc46ff17fdc5d7882d (patch) | |
tree | 21526a354995dfc0d04d87bd2e6dfd15e0ee136a /deps | |
parent | 747b57cfb66abf2baafa372e312298c037248f1c (diff) | |
download | redis-56c1f8805e72cbc55d74a7fc46ff17fdc5d7882d.tar.gz |
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
Diffstat (limited to 'deps')
-rw-r--r-- | deps/hiredis/net.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |