From: Pierangelo Masarati Date: Mon, 8 Aug 2005 20:01:04 +0000 (+0000) Subject: plug another one-time leak X-Git-Tag: OPENLDAP_AC_BP~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b286c9264b312e6367009ae96c926dba627b2d94;p=openldap plug another one-time leak --- diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 7be75a8276..4107471099 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -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 ); }