From: Pierangelo Masarati Date: Fri, 9 Sep 2005 02:37:38 +0000 (+0000) Subject: release resources (ITS#4016) X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~455 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=866148810e94504c1e91807c819102d86c8f8375;p=openldap release resources (ITS#4016) --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 5f6960abed..e94fc9c483 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -741,6 +741,9 @@ retry:; rc = ldap_back_op_result( lc, op, rs, msgid, sendok ); if ( rc == LDAP_SUCCESS ) { lc->lc_bound = 1; + + } else { + ldap_back_release_conn( op, rs, lc ); } }