StratumServer: fixed memory leak on shutdown

pull/280/head
SChernykh 2023-10-02 08:19:28 +02:00
parent 2ed63ab3ac
commit 8270e0898b
1 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,14 @@ StratumServer::~StratumServer()
{
shutdown_tcp();
{
MutexLock lock(m_blobsQueueLock);
for (BlobsData* data : m_blobsQueue) {
delete data;
}
}
uv_mutex_destroy(&m_blobsQueueLock);
uv_mutex_destroy(&m_showWorkersLock);
uv_mutex_destroy(&m_rngLock);