Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
a9b140ed
Commit
a9b140ed
authored
Oct 05, 2011
by
JINMEI Tatuya
Browse files
[master] use freeaddrinfo to free an addrinfo structure, not free.
reported by Francis on bind10-dev. looks okay, directly pushing.
parent
f5d7359a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/tests/io_endpoint_unittest.cc
View file @
a9b140ed
...
...
@@ -219,7 +219,7 @@ sockAddrMatch(const struct sockaddr& actual_sa,
res
->
ai_addr
->
sa_len
=
actual_sa
.
sa_len
;
#endif
EXPECT_EQ
(
0
,
memcmp
(
res
->
ai_addr
,
&
actual_sa
,
res
->
ai_addrlen
));
free
(
res
);
free
addrinfo
(
res
);
}
TEST
(
IOEndpointTest
,
getSockAddr
)
{
...
...
Write
Preview
Supports
Markdown
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