mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
free filter before overlays' cleanup callback
This commit is contained in:
parent
d0dd945882
commit
adc358f664
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user