]> git.sur5r.net Git - openldap/commitdiff
sl_malloc tweak
authorHoward Chu <hyc@openldap.org>
Thu, 15 Jan 2004 21:32:58 +0000 (21:32 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Jan 2004 21:32:58 +0000 (21:32 +0000)
servers/slapd/backend.c

index b0c24c12af03ab6846fba2527d787c9ad825ad62..cb27cdb7aa65646b288df0ab684eb43159a324a8 100644 (file)
@@ -1312,7 +1312,7 @@ backend_group(
        }
 
        if ( op->o_tag != LDAP_REQ_BIND && !op->o_do_not_cache ) {
-               g = sl_malloc(sizeof(GroupAssertion) + gr_ndn->bv_len, op->o_tmpmemctx);
+               g = op->o_tmpalloc(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;