oops, typos:
it out. (First stage: /free/ch_free/ in slapd, #define CH_FREE in all
sorry, "s/free/ch_free/".
Since it can be a bit hard to keep track of which memory comes from where, ch_free() fetches the current thread's context if passed a NULL context.
It fetches the current thread's context, period. It's not passed a context. I was thinking of a private ch_free_x where it is, since it can be used as ber_memfree() handler.