mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
Merge pull request #2014 from mattsta/fix-hiredis-leak
Fix hiredis getaddrinfo leak
This commit is contained in:
commit
8fe3ecff09
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user