mirror of
https://github.com/xmrig/xmrig-proxy.git
synced 2026-02-09 02:59:17 +08:00
Fixed memory leak
This commit is contained in:
@@ -89,7 +89,7 @@ xmrig::Miner::~Miner()
|
||||
delete m_socket;
|
||||
}
|
||||
else {
|
||||
uv_close(reinterpret_cast<uv_handle_t *>(m_socket), [](uv_handle_t *handle) { delete handle; });
|
||||
uv_close(reinterpret_cast<uv_handle_t *>(m_socket), [](uv_handle_t *handle) { delete reinterpret_cast<uv_tcp_t *>(handle); });
|
||||
}
|
||||
|
||||
# ifdef XMRIG_FEATURE_TLS
|
||||
|
||||
Reference in New Issue
Block a user