diff options
author | Matt Stancliff <matt@genges.com> | 2014-09-18 14:21:12 -0400 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-09-19 14:22:00 +0200 |
commit | beafebb4f38a1ad9a6c8e8c1ee45012d99af5b0a (patch) | |
tree | 5a7e87c5f41ffb2c236dd1187bc85bc25d5f2312 | |
parent | 3f64424e3ec43a39712dea5a5399f4f450fc101b (diff) | |
download | redis-beafebb4f38a1ad9a6c8e8c1ee45012d99af5b0a.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
-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)); |