Fixed back-bdb/hdb - check for BDB TXN patch
Fixed back-hdb nested modrdn bug (ITS#3857)
Fixed back-ldap/meta undefined filter propagation (ITS#3785)
+ Fixed back-ldap memory leak (ITS#3862)
Fixed back-meta add w/o parent add (ITS#3804)
Fixed back-meta control propagation bug (ITS#3813)
Fixed syncrepl SASL bind crash (ITS#3792)
lc = avl_delete( &li->conntree, (caddr_t)&lc_curr, ldap_back_conn_cmp );
ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
+#ifdef ENABLE_REWRITE
+ /*
+ * Cleanup rewrite session
+ */
+ rewrite_session_delete( li->rwmap.rwm_rw, conn );
+#endif /* ENABLE_REWRITE */
+
if (lc) {
#ifdef NEW_LOGGING
LDAP_LOG( BACK_LDAP, DETAIL1,
lc->conn->c_connid, 0, 0 );
#endif
-#ifdef ENABLE_REWRITE
- /*
- * Cleanup rewrite session
- */
- rewrite_session_delete( li->rwmap.rwm_rw, conn );
-#endif /* ENABLE_REWRITE */
-
/*
* Needs a test because the handler may be corrupted,
* and calling ldap_unbind on a corrupted header results