]> git.sur5r.net Git - openldap/commitdiff
Fix memory leak.
authorMark Valence <mrv@openldap.org>
Sun, 4 Jun 2000 22:59:06 +0000 (22:59 +0000)
committerMark Valence <mrv@openldap.org>
Sun, 4 Jun 2000 22:59:06 +0000 (22:59 +0000)
servers/slapd/back-ldap/unbind.c

index ac1adcb7405a9488861bc4d7665f2b810f999bba..63519bbc98a05b18bda2a4aed2f687517c676249 100644 (file)
@@ -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);
        }