]> git.sur5r.net Git - openldap/commitdiff
free self in case anything goes wrong
authorPierangelo Masarati <ando@openldap.org>
Sat, 14 Mar 2009 16:41:58 +0000 (16:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 14 Mar 2009 16:41:58 +0000 (16:41 +0000)
contrib/slapd-modules/cloak/cloak.c

index 6dfb7d3e56ed71114e114581753c1e06bcd525e8..8d29a1579cdd78410c7ce7dc3765ad903f7e560e 100644 (file)
@@ -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;