Commit 6567412f authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

schema_destroy(): Handle failed slap_schema_init()

parent c044d322
......@@ -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 );
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment