mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-01 11:29:27 -05:00
cleanup resource release
This commit is contained in:
parent
15853f1e74
commit
942ca17669
2 changed files with 3 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ retry_lock:;
|
|||
"=>ldap_back_bind: destroying conn %ld (refcnt=%u)\n",
|
||||
LDAP_BACK_PCONN_ID( lc->lc_conn ), lc->lc_refcnt, 0 );
|
||||
|
||||
if ( lc->lc_refcnt != 0 ) {
|
||||
if ( tmplc->lc_refcnt != 0 ) {
|
||||
/* taint it */
|
||||
LDAP_BACK_CONN_TAINTED_SET( tmplc );
|
||||
|
||||
|
|
@ -1432,6 +1432,7 @@ ldap_back_retry( ldapconn_t **lcp, Operation *op, SlapReply *rs, ldap_back_send_
|
|||
"ldap_back_retry: conn %p refcnt=%u unable to retry.\n",
|
||||
(void *)(*lcp), (*lcp)->lc_refcnt, 0 );
|
||||
|
||||
LDAP_BACK_CONN_TAINTED_SET( *lcp );
|
||||
ldap_back_release_conn_lock( op, rs, *lcp, 0 );
|
||||
*lcp = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ retry_lock:;
|
|||
"=>meta_back_bind: destroying conn %ld (refcnt=%u)\n",
|
||||
LDAP_BACK_PCONN_ID( mc->mc_conn ), mc->mc_refcnt, 0 );
|
||||
|
||||
if ( mc->mc_refcnt != 0 ) {
|
||||
if ( tmpmc->mc_refcnt != 0 ) {
|
||||
/* taint it */
|
||||
LDAP_BACK_CONN_TAINTED_SET( tmpmc );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue