free filter before overlays' cleanup callback

This commit is contained in:
Pierangelo Masarati 2008-07-15 12:31:08 +00:00
parent d0dd945882
commit adc358f664

View File

@ -532,6 +532,10 @@ finish:;
ldap_back_quarantine( op, rs );
}
if ( filter.bv_val != op->ors_filterstr.bv_val ) {
op->o_tmpfree( filter.bv_val, op->o_tmpmemctx );
}
#if 0
/* let send_ldap_result play cleanup handlers (ITS#4645) */
if ( rc != SLAPD_ABANDON )
@ -557,10 +561,6 @@ finish:;
rs->sr_matched = save_matched;
}
if ( filter.bv_val != op->ors_filterstr.bv_val ) {
op->o_tmpfree( filter.bv_val, op->o_tmpmemctx );
}
if ( rs->sr_text ) {
if ( freetext ) {
LDAP_FREE( (char *)rs->sr_text );