]> git.sur5r.net Git - openldap/commitdiff
actually, fixed leak is unrelated to ITS#3862
authorPierangelo Masarati <ando@openldap.org>
Fri, 15 Jul 2005 01:14:13 +0000 (01:14 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 15 Jul 2005 01:14:13 +0000 (01:14 +0000)
CHANGES
servers/slapd/back-meta/unbind.c

diff --git a/CHANGES b/CHANGES
index 2945ff5cb2447129dedf05848f4a7e646ee8b197..4c2d559887e09ac0048aa3b5a76a2b840cf5d5ec 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +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/meta memory leak (ITS#3862)
+       Fixed back-ldap/meta rewrite session memory leak
        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)
index 8f2839a0e0d876618cf5dcb96173b35224986406..de5ed44d2415af951239c613e68141ab3fa1de36 100644 (file)
@@ -58,13 +58,6 @@ meta_back_conn_destroy(
                        meta_back_conn_cmp );
        ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
 
-       /*
-        * Cleanup rewrite session
-        */
-       for ( i = 0; i < li->ntargets; ++i ) {
-               rewrite_session_delete( li->targets[ i ]->rwmap.rwm_rw, conn );
-       }
-
        if ( lc ) {
 #ifdef NEW_LOGGING
                LDAP_LOG( BACK_META, INFO,
@@ -91,6 +84,13 @@ meta_back_conn_destroy(
                free( lc );
        }
 
+       /*
+        * Cleanup rewrite session
+        */
+       for ( i = 0; i < li->ntargets; ++i ) {
+               rewrite_session_delete( li->targets[ i ]->rwmap.rwm_rw, conn );
+       }
+
        /* no response to unbind */
 
        return 0;