mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Partially revert prev commit, just omit the sl_mem_destroy
This commit is contained in:
parent
beeede6c0c
commit
f92dc7b5fa
1 changed files with 9 additions and 3 deletions
|
|
@ -723,6 +723,12 @@ monitor_search2ndn(
|
|||
|
||||
op->o_tag = LDAP_REQ_SEARCH;
|
||||
|
||||
/* use global malloc for now */
|
||||
if ( op->o_tmpmemctx ) {
|
||||
op->o_tmpmemctx = NULL;
|
||||
}
|
||||
op->o_tmpmfuncs = &ch_mfuncs;
|
||||
|
||||
op->o_bd = be_monitor;
|
||||
if ( nbase == NULL || BER_BVISNULL( nbase ) ) {
|
||||
ber_dupbv_x( &op->o_req_dn, &op->o_bd->be_suffix[ 0 ],
|
||||
|
|
@ -769,12 +775,12 @@ cleanup:;
|
|||
if ( !BER_BVISNULL( &op->ors_filterstr ) ) {
|
||||
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
if ( !BER_BVISNULL( &op->o_req_ndn ) ) {
|
||||
op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
if ( !BER_BVISNULL( &op->o_req_dn ) ) {
|
||||
op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
if ( !BER_BVISNULL( &op->o_req_ndn ) ) {
|
||||
op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
if ( rc != 0 ) {
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue