mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
StratumServer: fixed memory leak on shutdown
This commit is contained in:
parent
2ed63ab3ac
commit
8270e0898b
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue