mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
s/free/slap_sl_free/
This commit is contained in:
parent
c4123bb613
commit
2b74930cb0
@ -887,7 +887,7 @@ acl_mask(
|
||||
|
||||
dn_match_cleanup:;
|
||||
if ( pat.bv_val != b->a_dn_pat.bv_val ) {
|
||||
free( pat.bv_val );
|
||||
slap_sl_free( pat.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
if ( !got_match ) {
|
||||
@ -1299,7 +1299,9 @@ dn_match_cleanup:;
|
||||
rc = backend_group( op, e, &bv, &op->o_ndn,
|
||||
b->a_group_oc, b->a_group_at );
|
||||
|
||||
if ( ndn.bv_val ) free( ndn.bv_val );
|
||||
if ( ndn.bv_val ) {
|
||||
slap_sl_free( ndn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
if ( rc != 0 ) {
|
||||
continue;
|
||||
@ -2042,7 +2044,7 @@ aci_group_member (
|
||||
if ( dnNormalize( 0, NULL, NULL, &bv, &ndn, op->o_tmpmemctx ) == LDAP_SUCCESS ) {
|
||||
rc = ( backend_group( op, e, &ndn, &op->o_ndn,
|
||||
grp_oc, grp_ad ) == 0 );
|
||||
free( ndn.bv_val );
|
||||
slap_sl_free( ndn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
}
|
||||
|
||||
@ -2114,9 +2116,10 @@ aci_mask(
|
||||
struct berval ndn;
|
||||
rc = 0;
|
||||
if ( dnNormalize( 0, NULL, NULL, &sdn, &ndn, op->o_tmpmemctx ) == LDAP_SUCCESS ) {
|
||||
if (dn_match( &op->o_ndn, &ndn))
|
||||
if ( dn_match( &op->o_ndn, &ndn ) ) {
|
||||
rc = 1;
|
||||
free(ndn.bv_val);
|
||||
}
|
||||
slap_sl_free( ndn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
return (rc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user