[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Thread-local malloc discussion summary



Actually, a less drastic and completely API/ABI compatible fix is to
use ch_malloc() just for the filter, but use TL-malloc for everything
else it is being used for at present...

Does this look OK?

#ifdef LDAP_SLAPI
    /* Don't use thread-local malloc() */
    ch_op = *op; /* struct copy */
    ch_op.o_tmpmemctx = NULL;
    ch_op.o_tmpmfuncs = &ch_mfuncs;
    rs->sr_err = get_filter( &ch_op, op->o_ber, &op->ors_filter, &rs->sr_text );
#else
    rs->sr_err = get_filter( op, op->o_ber, &op->ors_filter, &rs->sr_text );
#endif

-- Luke

--
Luke Howard | PADL Software Pty Ltd | www.padl.com