ITS#7587 fix double-free

Related to bb3e14ddba (ITS#6254)
This commit is contained in:
Howard Chu 2014-03-18 11:47:31 -07:00
parent bfbc6fe4a6
commit 052aef5960

View File

@ -1109,7 +1109,8 @@ static int translucent_search(Operation *op, SlapReply *rs) {
filter2bv_x( op, fr, &op->ors_filterstr );
}
rc = ov->db.bd_info->bi_op_search(op, rs);
op->ors_attrs = tc.attrs;
if ( op->ors_attrs == slap_anlist_all_attributes )
op->ors_attrs = tc.attrs;
op->o_bd = tc.db;
if ( fl ) {
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );