memdebug.[ch]

Matthias Andree matthias.andree at gmx.de
Wed Mar 16 03:08:53 CET 2005


David Relson <relson at osagesoftware.com> writes:

>> In a nutshell, something like
>> 
>>     env->set_alloc(env, md_malloc, md_realloc, md_free);
>> 
>> would work for the transactional case,
>> and for the non-transactional,
>> 
>>     dbp->set_alloc(dbp, md_malloc, md_realloc, md_free);
>> 
>> should do, where either of these must happen before the respective
>> foo->open calls.
>
> Neat!  I'll take a look at these.

BTW: db handles inherit just about everything from a surrounding
environment, so dbp->set_alloc will fail with EINVAL when tried in an
environment (= after env->set_alloc).

-- 
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev



More information about the bogofilter-dev mailing list