mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Merge pull request #2014 from mattsta/fix-hiredis-leak
Fix hiredis getaddrinfo leak
This commit is contained in:
1
deps/hiredis/net.c
vendored
1
deps/hiredis/net.c
vendored
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user