From: Pierangelo Masarati Date: Sat, 14 Mar 2009 16:41:58 +0000 (+0000) Subject: free self in case anything goes wrong X-Git-Tag: ACLCHECK_0~684 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=161169aa11b1dc5c1f7b927ca34a396b776e4900;p=openldap free self in case anything goes wrong --- diff --git a/contrib/slapd-modules/cloak/cloak.c b/contrib/slapd-modules/cloak/cloak.c index 6dfb7d3e56..8d29a1579c 100644 --- a/contrib/slapd-modules/cloak/cloak.c +++ b/contrib/slapd-modules/cloak/cloak.c @@ -269,7 +269,7 @@ cloak_search( Operation *op, SlapReply *rs ) sc = op->o_tmpcalloc( 1, sizeof( *sc ), op->o_tmpmemctx ); sc->sc_response = cloak_search_cb; - sc->sc_cleanup = NULL; + sc->sc_cleanup = slap_freeself_cb; sc->sc_next = op->o_callback; sc->sc_private = ci; op->o_callback = sc;