8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:43:03 +01:00

Fixed memory pool usage.

This commit is contained in:
dimitr 2003-01-17 07:11:10 +00:00
parent 4aec77b29c
commit 8c1ae9003d

View File

@ -102,7 +102,7 @@ void ThreadPriorityScheduler::Init(void)
specific_key = TlsAlloc();
// memory pool for thps allocation
pool = FB_NEW(*(getDefaultMemoryPool())) MemoryPool;
pool = MemoryPool::createPool();
// mutex to sync linked list operations
THD_mutex_init(&mutex);
@ -344,7 +344,7 @@ start_label:
break;
}
// cleanup
delete pool;
MemoryPool::deletePool(pool);
THD_mutex_destroy(&mutex);
TlsFree(specific_key);
return 0;