From ae1481ba62ff0acdacaa672eabd9b201f9a3456d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 6 Sep 2006 02:06:45 +0000 Subject: [PATCH] minor cleanup; plug couple of one-time leaks --- servers/slapd/back-bdb/monitor.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-bdb/monitor.c b/servers/slapd/back-bdb/monitor.c index aaabe0a0d4..3fd2e333c3 100644 --- a/servers/slapd/back-bdb/monitor.c +++ b/servers/slapd/back-bdb/monitor.c @@ -101,7 +101,7 @@ static struct { char *desc; AttributeDescription **ad; } s_at[] = { - { "olmBDBCounter", "( " BDB_MONITOR_SCHEMA_AD ".0 " + { "olmBDBCounter", "( " BDB_MONITOR_SCHEMA_AD ".1 " "NAME ( 'olmBDBCounter' ) " "DESC 'A dummy counter' " "SUP monitorCounter " @@ -322,10 +322,14 @@ cleanup:; if ( cb != NULL ) { ch_free( cb ); } + } - if ( a != NULL ) { - attrs_free( a ); - } + if ( !BER_BVISNULL( &filter ) ) { + ch_free( filter.bv_val ); + } + + if ( a != NULL ) { + attrs_free( a ); } return rc; -- 2.39.5