]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/init.c
fix previous commit (ITS#4861)
[openldap] / servers / slapd / init.c
index 9c3cca1c183113b7786e3b748bc3d5f6dfd8c772..9a048b64eb5417f0a0095d7569cee92ae1b55962 100644 (file)
@@ -300,6 +300,9 @@ int slap_destroy(void)
                ber_bvarray_free( default_referral );
        }
 
+       /* clear out any thread-keys for the main thread */
+       ldap_pvt_thread_pool_context_reset( ldap_pvt_thread_pool_context());
+
        rc = backend_destroy();
 
        slap_sasl_destroy();