mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#8727 plug ber leaks
This commit is contained in:
parent
75999a18c3
commit
01a5eeac1d
@ -315,6 +315,7 @@ ldap_send_server_request(
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_options.ldo_mutex );
|
||||
if ( rc == -1 ) {
|
||||
ld->ld_errno = LDAP_ENCODING_ERROR;
|
||||
ber_free( ber, 1 );
|
||||
LDAP_CONN_UNLOCK_IF(m_noconn);
|
||||
return rc;
|
||||
}
|
||||
@ -334,6 +335,7 @@ ldap_send_server_request(
|
||||
rc = -1;
|
||||
}
|
||||
if ( rc ) {
|
||||
ber_free( ber, 1 );
|
||||
LDAP_CONN_UNLOCK_IF(m_noconn);
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user