mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
Memory cleanup
This commit is contained in:
parent
be1a5057a9
commit
0f18805d65
1 changed files with 6 additions and 2 deletions
|
|
@ -618,7 +618,11 @@ monitor_filter2ndn(
|
|||
op->o_tag = LDAP_REQ_SEARCH;
|
||||
|
||||
/* use global malloc for now */
|
||||
op->o_tmpmemctx = NULL;
|
||||
if ( op->o_tmpmemctx ) {
|
||||
/* FIXME: connection_fake_init() calls slap_sl_mem_create, so we destroy it for now */
|
||||
slap_sl_mem_destroy( NULL, op->o_tmpmemctx );
|
||||
op->o_tmpmemctx = NULL;
|
||||
}
|
||||
op->o_tmpmfuncs = &ch_mfuncs;
|
||||
|
||||
op->o_bd = be_monitor;
|
||||
|
|
@ -631,7 +635,7 @@ monitor_filter2ndn(
|
|||
} else {
|
||||
if ( dnPrettyNormal( NULL, base, &op->o_req_dn, &op->o_req_ndn,
|
||||
op->o_tmpmemctx ) ) {
|
||||
/* error */
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue