mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
plug leak
This commit is contained in:
parent
ccff813df0
commit
4a249bbe0d
@ -1631,7 +1631,7 @@ pcache_response(
|
|||||||
return SLAP_CB_CONTINUE;
|
return SLAP_CB_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
add_filter_attrs(
|
add_filter_attrs(
|
||||||
Operation *op,
|
Operation *op,
|
||||||
AttributeName** new_attrs,
|
AttributeName** new_attrs,
|
||||||
@ -1689,6 +1689,8 @@ add_filter_attrs(
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
BER_BVZERO( &(*new_attrs)[j].an_name );
|
BER_BVZERO( &(*new_attrs)[j].an_name );
|
||||||
|
|
||||||
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NOTE: this is a quick workaround to let pcache minimally interact
|
/* NOTE: this is a quick workaround to let pcache minimally interact
|
||||||
@ -1833,7 +1835,8 @@ pcache_op_search(
|
|||||||
query.filter = filter_dup(op->ors_filter, NULL);
|
query.filter = filter_dup(op->ors_filter, NULL);
|
||||||
ldap_pvt_thread_rdwr_wlock(&qtemp->t_rwlock);
|
ldap_pvt_thread_rdwr_wlock(&qtemp->t_rwlock);
|
||||||
if ( !qtemp->t_attrs.count ) {
|
if ( !qtemp->t_attrs.count ) {
|
||||||
add_filter_attrs(op, &qtemp->t_attrs.attrs,
|
qtemp->t_attrs.count = add_filter_attrs(op,
|
||||||
|
&qtemp->t_attrs.attrs,
|
||||||
&qm->attr_sets[attr_set],
|
&qm->attr_sets[attr_set],
|
||||||
filter_attrs, fattr_cnt, fattr_got_oc);
|
filter_attrs, fattr_cnt, fattr_got_oc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user