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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3875,7 +3875,7 @@ void Bot::defuseBomb_ () {
|
|||
}
|
||||
|
||||
// we are defusing bomb
|
||||
if (m_hasProgressBar || pickupExists || (m_oldButtons & IN_USE)) {
|
||||
if (m_hasProgressBar || (m_oldButtons & IN_USE)) {
|
||||
pev->button |= IN_USE;
|
||||
|
||||
m_reloadState = Reload::None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue