mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More config leaks
This commit is contained in:
parent
282c00c349
commit
ae5c3db555
@ -645,7 +645,7 @@ log_cf_gen(ConfigArgs *c)
|
|||||||
case LOG_OLD:
|
case LOG_OLD:
|
||||||
if ( li->li_oldf ) {
|
if ( li->li_oldf ) {
|
||||||
filter2bv( li->li_oldf, &agebv );
|
filter2bv( li->li_oldf, &agebv );
|
||||||
value_add_one( &c->rvalue_vals, &agebv );
|
ber_bvarray_add( &c->rvalue_vals, &agebv );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rc = 1;
|
rc = 1;
|
||||||
@ -1427,9 +1427,14 @@ accesslog_db_destroy(
|
|||||||
{
|
{
|
||||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||||
log_info *li = on->on_bi.bi_private;
|
log_info *li = on->on_bi.bi_private;
|
||||||
|
log_attr *la;
|
||||||
|
|
||||||
if ( li->li_oldf )
|
if ( li->li_oldf )
|
||||||
filter_free( li->li_oldf );
|
filter_free( li->li_oldf );
|
||||||
|
for ( la=li->li_oldattrs; la; la=li->li_oldattrs ) {
|
||||||
|
li->li_oldattrs = la->next;
|
||||||
|
ch_free( la );
|
||||||
|
}
|
||||||
ldap_pvt_thread_mutex_destroy( &li->li_log_mutex );
|
ldap_pvt_thread_mutex_destroy( &li->li_log_mutex );
|
||||||
ldap_pvt_thread_rmutex_destroy( &li->li_op_rmutex );
|
ldap_pvt_thread_rmutex_destroy( &li->li_op_rmutex );
|
||||||
free( li );
|
free( li );
|
||||||
|
Loading…
Reference in New Issue
Block a user