Skip to content
Snippets Groups Projects
Commit 6ad5fd16 authored by Howard Chu's avatar Howard Chu
Browse files

Use tmpmem for group cache, doesn't need cleanup

parent 102d8159
Branches
Tags
No related merge requests found
......@@ -1279,7 +1279,7 @@ backend_group(
}
if ( op->o_tag != LDAP_REQ_BIND && !op->o_do_not_cache ) {
g = ch_malloc(sizeof(GroupAssertion) + gr_ndn->bv_len);
g = sl_malloc(sizeof(GroupAssertion) + gr_ndn->bv_len, op->o_tmpmemctx);
g->ga_be = op->o_bd;
g->ga_oc = group_oc;
g->ga_at = group_at;
......
......@@ -69,6 +69,7 @@ slap_op_free( Operation *op )
free( op->o_sync_state.bv_val );
}
#if 0 /* needless, since it was allocated in tmpmem */
{
GroupAssertion *g, *n;
for (g = op->o_groups; g; g=n) {
......@@ -77,6 +78,7 @@ slap_op_free( Operation *op )
}
op->o_groups = NULL;
}
#endif
#if defined( LDAP_SLAPI )
if ( op->o_pb != NULL ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment