Убрал безусловный DEBUG_ERROR в memory_pool_destroy

This commit is contained in:
Evgeny committed 2026-06-10 11:15:02 +03:00
1 parent 4211e32f51
commit f883c8da75
1 file changed
-6
-6
View File
@@ -135,20 +135,14 @@ void memory_pool_destroy(struct memory_pool* pool) {
return;
}
int cnt=0;
// Освободить все объекты в пуле
void* obj = pool->free_head;
while (obj) {
void* next = *(void**)obj;
g_total_free--;
u_free(obj);
cnt++;
obj = next;
}
// if (cnt>MEMORY_POOL_MAX_FREE)
DEBUG_ERROR(DEBUG_CATEGORY_MEMORY, "pool_destroy: allocations=%zu, reuse=%zu, current pool size=%d", pool->allocations, pool->reuse_count, cnt);
pool->free_head = NULL;
pool->free_count = 0;
u_free(pool);