slap_sl_mem_create(
ber_len_t size,
int stack,
- void *ctx
+ void *ctx,
+ int new
)
{
struct slab_heap *sh;
sh = sh_tmp;
#endif
+ if ( !new )
+ return sh;
+
/* round up to doubleword boundary */
size += pad;
size &= ~pad;
int i, j;
#ifdef SLAP_NO_SL_MALLOC
- return ber_malloc_x( size, NULL );
+ return ber_memalloc_x( size, NULL );
#endif
/* ber_set_option calls us like this */