ITS#9906 Do not touch subsys members after mss_destroy called

This commit is contained in:
Ondřej Kuzník 2022-08-30 13:17:27 +01:00
parent 3ef90929ee
commit 2362c7ccc7

View file

@ -2537,13 +2537,13 @@ monitor_back_db_destroy(
int i;
for ( i = 0; monitor_subsys[ i ] != NULL; i++ ) {
if ( monitor_subsys[ i ]->mss_destroy ) {
monitor_subsys[ i ]->mss_destroy( be, monitor_subsys[ i ] );
}
if ( !BER_BVISNULL( &monitor_subsys[ i ]->mss_rdn ) ) {
ch_free( monitor_subsys[ i ]->mss_rdn.bv_val );
}
if ( monitor_subsys[ i ]->mss_destroy ) {
monitor_subsys[ i ]->mss_destroy( be, monitor_subsys[ i ] );
}
}
ch_free( monitor_subsys );