schema_destroy(): Handle failed slap_schema_init()

This commit is contained in:
Hallvard Furuseth 2006-04-13 22:19:19 +00:00
parent c044d32262
commit 6567412f54

View File

@ -4681,6 +4681,8 @@ schema_destroy( void )
mru_destroy();
syn_destroy();
ldap_pvt_thread_mutex_destroy( &ad_undef_mutex );
ldap_pvt_thread_mutex_destroy( &oc_undef_mutex );
if( schema_init_done ) {
ldap_pvt_thread_mutex_destroy( &ad_undef_mutex );
ldap_pvt_thread_mutex_destroy( &oc_undef_mutex );
}
}