Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
537a8845
Commit
537a8845
authored
Sep 18, 2014
by
Matt Stancliff
Browse files
Fix getaddrinfo() memory leak
See antirez/redis#2012 for the leak causing unbounded memory growth.
parent
2602e1b6
Changes
1
Show whitespace changes
Inline
Side-by-side
net.c
View file @
537a8845
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment