mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
Fix memory leak.
This commit is contained in:
parent
bb1d03a5e8
commit
6916d0d527
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue