]> git.sur5r.net Git - openldap/commitdiff
restore code in search_cleanup to free ctrls
authorHoward Chu <hyc@openldap.org>
Tue, 7 Dec 2004 02:58:33 +0000 (02:58 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 7 Dec 2004 02:58:33 +0000 (02:58 +0000)
servers/slapd/overlays/syncprov.c

index 97d422198f4187efca76813dbef5db8ee5520f17..83bae92a07a43b5c0fea74dd94b7330041cd23cb 100644 (file)
@@ -1256,13 +1256,11 @@ typedef struct searchstate {
 static int
 syncprov_search_cleanup( Operation *op, SlapReply *rs )
 {
-#if 0
        if ( rs->sr_ctrls ) {
-               free( rs->sr_ctrls[0] );
+               op->o_tmpfree( rs->sr_ctrls[0], op->o_tmpmemctx );
                op->o_tmpfree( rs->sr_ctrls, op->o_tmpmemctx );
                rs->sr_ctrls = NULL;
        }
-#endif
        return 0;
 }