--- 1.3.x/ldap/apr_ldap_rebind.c  2011/05/10 21:34:23     1101656
+++ 1.3.x/ldap/apr_ldap_rebind.c  2011/05/10 21:34:43     1101657
@@ -82,7 +82,8 @@
 #endif
 
     /* run after apr_thread_mutex_create cleanup */
-    apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null, NULL);
+    apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null,
+                              apr_pool_cleanup_null);
 
 #if APR_HAS_THREADS
     if (apr_ldap_xref_lock == NULL) {

