plug another one-time leak

This commit is contained in:
Pierangelo Masarati 2005-08-08 20:01:04 +00:00
parent 64af435895
commit b286c9264b

View file

@ -1763,6 +1763,14 @@ monitor_back_db_destroy(
(void)monitor_cache_destroy( mi ); (void)monitor_cache_destroy( mi );
if ( monitor_subsys ) { 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 ); ch_free( monitor_subsys );
} }