mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +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;
|
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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user