//////////////////////////////////////////////////////////
#include <stdlib.h>
-
-// just until uninitialized mem bug found
-#include <string.h>
-
#include "mlp_lock.h"
p->head = calloc( 1, itemSize );
p->head->next = NULL;
p->tail = p->head;
+ return p;
}
if( headCurrent->next == NULL ) {
// only one item, so don't take from pool
- //return malloc( p->itemSize );
-
- // just until uninitialized mem bug found
- return calloc( 1, p->itemSize );
+ return malloc( p->itemSize );
}
p->head = headCurrent->next;
// just until uninitialized mem bug found
- memset( headCurrent, 0, p->itemSize );
+ //memset( headCurrent, 0, p->itemSize );
return headCurrent;
}