]> git.sur5r.net Git - openldap/commitdiff
fix leak in case of retry
authorPierangelo Masarati <ando@openldap.org>
Fri, 24 Nov 2006 01:44:11 +0000 (01:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 24 Nov 2006 01:44:11 +0000 (01:44 +0000)
servers/slapd/back-ldap/bind.c

index 1c6b113679d7f9d52b32ce7db06ec56cc0f8dd67..55151b8be8e47b5d1a95ef1644cb0f26041c8435 100644 (file)
@@ -1206,6 +1206,8 @@ retry:;
 
                /* FIXME: one binding-- too many? */
                lc->lc_binding--;
+               assert( lc->lc_refcnt == 1 );
+               lc->lc_refcnt = 0;
                ldap_back_freeconn( op, lc, dolock );
                *lcp = NULL;
                rs->sr_err = slap_map_api2result( rs );