mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
Fix memory leak.
This commit is contained in:
parent
af3655c27e
commit
1e62943010
1 changed files with 2 additions and 0 deletions
|
@ -590,6 +590,8 @@ void xmrig::Client::connect(sockaddr *addr)
|
|||
# endif
|
||||
|
||||
uv_tcp_connect(req, m_socket, reinterpret_cast<const sockaddr*>(addr), Client::onConnect);
|
||||
|
||||
delete addr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue