#ifdef HAVE_TLS
if ( slap_tls_ld ) {
SSL_CTX_free( slap_tls_ctx );
- ldap_unbind( slap_tls_ld );
+ ldap_unbind_ext( slap_tls_ld, NULL, NULL );
}
ldap_pvt_tls_destroy();
#endif
+ slap_sasl_regexp_destroy();
+
if ( slapd_pid_file_unlink ) {
unlink( slapd_pid_file );
}