]> git.sur5r.net Git - openldap/commitdiff
more about rewrite leaks
authorPierangelo Masarati <ando@openldap.org>
Tue, 19 Jul 2005 14:24:26 +0000 (14:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 19 Jul 2005 14:24:26 +0000 (14:24 +0000)
servers/slapd/back-meta/bind.c
servers/slapd/back-meta/conn.c

index 23b85e3f064345b064422eb036db39ca3020225f..d390407d9c16bb3223ef2b848363e606f348f10b 100644 (file)
@@ -276,6 +276,8 @@ retry_lock:;
                                        msc->msc_ld = NULL;
                                        msc->msc_bound = 0;
 
+                                       ( void )rewrite_session_delete( mt->mt_rwmap.rwm_rw, op->o_conn );
+
                                        /* mc here must be the regular mc,
                                         * reset and ready for init */
                                        rc = meta_back_init_one_conn( op, rs,
@@ -449,6 +451,8 @@ retry_lock:;
                                        msc->msc_ld = NULL;
                                        msc->msc_bound = 0;
 
+                                       ( void )rewrite_session_delete( mt->mt_rwmap.rwm_rw, op->o_conn );
+
                                        /* mc here must be the regular mc,
                                         * reset and ready for init */
                                        rc = meta_back_init_one_conn( op, rs,
index d31363de5631c6a18c70fe568fb262b218f184b2..f1f80d72e379d30bfe73ed59064fcfb4a2198ae5 100644 (file)
@@ -431,6 +431,8 @@ retry_lock:;
                msc->msc_ld = NULL;
                msc->msc_bound = 0;
 
+               ( void )rewrite_session_delete( mt->mt_rwmap.rwm_rw, op->o_conn );
+
                /* mc here must be the regular mc, reset and ready for init */
                rc = meta_back_init_one_conn( op, rs, mt, msc, sendok );