]> git.sur5r.net Git - openldap/commitdiff
minor cleanup; plug couple of one-time leaks
authorPierangelo Masarati <ando@openldap.org>
Wed, 6 Sep 2006 02:06:45 +0000 (02:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 6 Sep 2006 02:06:45 +0000 (02:06 +0000)
servers/slapd/back-bdb/monitor.c

index aaabe0a0d4b71ad9e96f59158e7612511fac17ae..3fd2e333c38e9c501f230a3aa23492006c612c8c 100644 (file)
@@ -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;