mirror of https://github.com/SChernykh/p2pool
StratumServer: fixed memory leak on shutdown
parent
2ed63ab3ac
commit
8270e0898b
|
@ -91,6 +91,14 @@ StratumServer::~StratumServer()
|
||||||
{
|
{
|
||||||
shutdown_tcp();
|
shutdown_tcp();
|
||||||
|
|
||||||
|
{
|
||||||
|
MutexLock lock(m_blobsQueueLock);
|
||||||
|
|
||||||
|
for (BlobsData* data : m_blobsQueue) {
|
||||||
|
delete data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uv_mutex_destroy(&m_blobsQueueLock);
|
uv_mutex_destroy(&m_blobsQueueLock);
|
||||||
uv_mutex_destroy(&m_showWorkersLock);
|
uv_mutex_destroy(&m_showWorkersLock);
|
||||||
uv_mutex_destroy(&m_rngLock);
|
uv_mutex_destroy(&m_rngLock);
|
||||||
|
|
Loading…
Reference in New Issue