Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL)

This commit is contained in:
Howard Chu 2002-01-05 11:41:03 +00:00
parent 996eb58011
commit 5fd983725e

View file

@ -204,7 +204,8 @@ at_destroy( void )
ldap_pvt_thread_mutex_destroy(&a->sat_ad_mutex);
ldap_attributetype_free((LDAPAttributeType *)a);
}
ad_destroy(slap_schema.si_at_undefined->sat_ad);
if ( slap_schema.si_at_undefined )
ad_destroy(slap_schema.si_at_undefined->sat_ad);
}
static int