]> git.sur5r.net Git - openldap/commitdiff
plug another one-time leak
authorPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 20:01:04 +0000 (20:01 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 20:01:04 +0000 (20:01 +0000)
servers/slapd/back-monitor/init.c

index 7be75a8276986414ecd13201262c249dec48e4ad..4107471099c708ad6f80da1400f6580fc266cec2 100644 (file)
@@ -1763,6 +1763,14 @@ monitor_back_db_destroy(
        (void)monitor_cache_destroy( mi );
 
        if ( monitor_subsys ) {
+               int     i;
+
+               for ( i = 0; monitor_subsys[ i ] != NULL; i++ ) {
+                       if ( !BER_BVISNULL( &monitor_subsys[ i ]->mss_rdn ) ) {
+                               ch_free( monitor_subsys[ i ]->mss_rdn.bv_val );
+                       }
+               }
+
                ch_free( monitor_subsys );
        }