From: Hallvard Furuseth Date: Thu, 13 Apr 2006 22:19:19 +0000 (+0000) Subject: schema_destroy(): Handle failed slap_schema_init() X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~3^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6567412f54afce58337183e308e1fe51b39e05dd;p=openldap schema_destroy(): Handle failed slap_schema_init() --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 39952664db..fe237767a4 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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 ); + } }