Pierangelo Masarati <[email protected]> wrote:

> At a quick glance, you're leaking the callback containing the cloak 
> response.  You should remove (and free it) when called with REP_RESULT
> as sr_type, and add a slap_freeself_cb() cleanup hook.  You won't notice
> the memory leak unless you build slapd with SLAP_NO_SL_MALLOC set, or
> unless your overlay operates within a slab memory intensive context. 

Here is an update, I hope it addresses the concerns you raised:
ftp://ftp.openldap.org/incoming/manu-cloak-20081230.c

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
[email protected]


Reply via email to