]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/init.c
Add pointer to an existing document since the netscape.com URLs are dead.
[openldap] / servers / slapd / init.c
index 8b02007bcf49c8e6b20e982134fa4f2921a7f22d..d504a79228e144e1fa99d4ce46d6970864696f4b 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2006 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -271,6 +271,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();