From 161169aa11b1dc5c1f7b927ca34a396b776e4900 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 14 Mar 2009 16:41:58 +0000 Subject: [PATCH] free self in case anything goes wrong --- contrib/slapd-modules/cloak/cloak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5