"app/vscode:/vscode.git/clone" did not exist on "b09cac058a7b5fae0be85b79bfe8de1a777e2b32"
Commit 537a8845 authored by Matt Stancliff's avatar Matt Stancliff
Browse files

Fix getaddrinfo() memory leak

See antirez/redis#2012 for the leak causing unbounded memory growth.
parent 2602e1b6
......@@ -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));
......
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