mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
SF# 3379935 - fixed memory leak
This commit is contained in:
parent
51db1d296c
commit
50fddbd3e8
@ -449,9 +449,17 @@ PooledThread* ThreadPool::getThread()
|
||||
if (_threads.size() < _maxCapacity)
|
||||
{
|
||||
pThread = createThread();
|
||||
try
|
||||
{
|
||||
pThread->start();
|
||||
_threads.push_back(pThread);
|
||||
}
|
||||
catch(SystemException& e)
|
||||
{
|
||||
delete pThread;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
else throw NoThreadAvailableException();
|
||||
}
|
||||
pThread->activate();
|
||||
|
Loading…
Reference in New Issue
Block a user