mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
Fix memory leak.
This commit is contained in:
parent
bb1d03a5e8
commit
6916d0d527
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user