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
8f60ee65
Commit
8f60ee65
authored
Sep 19, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #274 from mattsta/fix-memory-leak
Fix getaddrinfo() memory leak
parents
2602e1b6
537a8845
Changes
1
Show whitespace changes
Inline
Side-by-side
net.c
View file @
8f60ee65
...
@@ -300,6 +300,7 @@ static int _redisContextConnectTcp(redisContext *c, const char *addr, int port,
...
@@ -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
));
...
...
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