From: Pierangelo Masarati Date: Tue, 19 Jul 2005 14:24:26 +0000 (+0000) Subject: more about rewrite leaks X-Git-Tag: OPENLDAP_AC_BP~331 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=882f43bf017cad54097cea6a7caccc3cfa22445e;p=openldap more about rewrite leaks --- diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index 23b85e3f06..d390407d9c 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -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, diff --git a/servers/slapd/back-meta/conn.c b/servers/slapd/back-meta/conn.c index d31363de56..f1f80d72e3 100644 --- a/servers/slapd/back-meta/conn.c +++ b/servers/slapd/back-meta/conn.c @@ -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 );