Fixed possible addrinfo leak.
This commit is contained in:
parent
70e0767ce0
commit
4b035819cb
2 changed files with 2 additions and 1 deletions
|
|
@ -84,6 +84,7 @@ public:
|
|||
m_socket = static_cast <int> (socket (result->ai_family, result->ai_socktype, 0));
|
||||
|
||||
if (m_socket < 0) {
|
||||
freeaddrinfo (result);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue