Commit 8fe3ecff authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #2014 from mattsta/fix-hiredis-leak

Fix hiredis getaddrinfo leak
parents 747b57cf 56c1f880
...@@ -300,6 +300,7 @@ static int _redisContextConnectTcp(redisContext *c, const char *addr, int port, ...@@ -300,6 +300,7 @@ static int _redisContextConnectTcp(redisContext *c, const char *addr, int port,
break; break;
} }
} }
freeaddrinfo(bservinfo);
if (!bound) { if (!bound) {
char buf[128]; char buf[128];
snprintf(buf,sizeof(buf),"Can't bind socket: %s",strerror(errno)); snprintf(buf,sizeof(buf),"Can't bind socket: %s",strerror(errno));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment