From ae5c3db555198892109380904ecb0aa0d0df35d5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 21 Aug 2006 04:25:54 +0000 Subject: [PATCH] More config leaks --- servers/slapd/overlays/accesslog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index ecf01b0331..f9f90c8255 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -645,7 +645,7 @@ log_cf_gen(ConfigArgs *c) case LOG_OLD: if ( li->li_oldf ) { filter2bv( li->li_oldf, &agebv ); - value_add_one( &c->rvalue_vals, &agebv ); + ber_bvarray_add( &c->rvalue_vals, &agebv ); } else rc = 1; @@ -1427,9 +1427,14 @@ accesslog_db_destroy( { slap_overinst *on = (slap_overinst *)be->bd_info; log_info *li = on->on_bi.bi_private; + log_attr *la; if ( 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_rmutex_destroy( &li->li_op_rmutex ); free( li ); -- 2.39.5