src/server/util/pool.c

changeset 71
069c152f6272
parent 40
56cda23f48d4
child 91
fac51f87def0
equal deleted inserted replaced
70:4e6e812c1d97 71:069c152f6272
177 } 177 }
178 178
179 static void 179 static void
180 _free_block(block_t *block) 180 _free_block(block_t *block)
181 { 181 {
182 #ifdef POOL_ZERO_DEBUG
182 long blen = block->end - block->data; 183 long blen = block->end - block->data;
183
184 #ifdef POOL_ZERO_DEBUG
185 memset(block->data, POOL_ZERO_DEBUG, blen); 184 memset(block->data, POOL_ZERO_DEBUG, blen);
186 #endif /* POOL_ZERO_DEBUG */ 185 #endif /* POOL_ZERO_DEBUG */
187 186
188 PERM_FREE(block->data); 187 PERM_FREE(block->data);
189 188
456 pool->free_blocks = tmp_blk->next; 455 pool->free_blocks = tmp_blk->next;
457 _free_block(tmp_blk); 456 _free_block(tmp_blk);
458 } 457 }
459 458
460 { 459 {
461 pool_t **ppool; 460 //pool_t **ppool;
462 461
463 /* Remove from the known pools list */ 462 /* Remove from the known pools list */
464 // NOTICE: known pools list removed 463 // NOTICE: known pools list removed
465 /* 464 /*
466 PR_Lock(pool_global_stats.lock); 465 PR_Lock(pool_global_stats.lock);

mercurial