/*
- * $Id: MemPool.c,v 1.10 2002/04/08 10:17:11 hno Exp $
+ * $Id: MemPool.c,v 1.11 2002/04/16 00:33:29 hno Exp $
*
* DEBUG: section 63 Low Level Memory Pool Management
* AUTHOR: Alex Rousskov, Andres Kroonmaa
memPoolPush(MemPool * pool, void *obj)
{
void **Free;
- if ((pool->obj_size % 2048) != 0)
+ /* XXX We should figure out a sane way of avoiding having to clear
+ * all buffers. For example data buffers such as used by MemBuf do
+ * not really need to be cleared.. There was a condition based on
+ * the object size here, but such condition is not safe.
+ */
memset(obj, 0, pool->obj_size);
Free = obj;
*Free = pool->freeCache;