Commit 4901b587 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix memory leak (ITS#3862)

parent fbc40129
......@@ -5,6 +5,7 @@ OpenLDAP 2.2.28 Engineering
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)
......
......@@ -56,6 +56,13 @@ ldap_back_conn_destroy(
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,
......@@ -67,13 +74,6 @@ ldap_back_conn_destroy(
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment