From b286c9264b312e6367009ae96c926dba627b2d94 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 8 Aug 2005 20:01:04 +0000 Subject: [PATCH] plug another one-time leak --- servers/slapd/back-monitor/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ); } -- 2.39.5