From: Pierangelo Masarati Date: Fri, 24 Nov 2006 01:44:11 +0000 (+0000) Subject: fix leak in case of retry X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~445 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09abc9f8ae2485adb67dbd91be4d02a4b4bb454c;p=openldap fix leak in case of retry --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 1c6b113679..55151b8be8 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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 );