From: Pierangelo Masarati Date: Wed, 6 Sep 2006 02:06:45 +0000 (+0000) Subject: minor cleanup; plug couple of one-time leaks X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~208 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae1481ba62ff0acdacaa672eabd9b201f9a3456d;p=openldap minor cleanup; plug couple of one-time leaks --- 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;