Fixed possible addrinfo leak.

This commit is contained in:
jeefo 2019-09-22 01:01:24 +03:00
commit 4b035819cb
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}