From: Mark Valence Date: Sun, 4 Jun 2000 22:59:06 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2768 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6916d0d527d7b0b9e756511b9f9a98f33a6ae77b;p=openldap Fix memory leak. --- diff --git a/servers/slapd/back-ldap/unbind.c b/servers/slapd/back-ldap/unbind.c index ac1adcb740..63519bbc98 100644 --- a/servers/slapd/back-ldap/unbind.c +++ b/servers/slapd/back-ldap/unbind.c @@ -51,8 +51,7 @@ ldap_back_conn_destroy( ldap_pvt_thread_mutex_unlock( &li->conn_mutex ); if (lc) { - if (lc->bound) - ldap_unbind(lc->ld); + ldap_unbind(lc->ld); free(lc); }