From 6567412f54afce58337183e308e1fe51b39e05dd Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 13 Apr 2006 22:19:19 +0000 Subject: [PATCH] schema_destroy(): Handle failed slap_schema_init() --- servers/slapd/schema_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); + } } -- 2.39.5