mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8727 plug ber leaks
This commit is contained in:
parent
75999a18c3
commit
01a5eeac1d
1 changed files with 2 additions and 0 deletions
|
|
@ -315,6 +315,7 @@ ldap_send_server_request(
|
||||||
LDAP_MUTEX_UNLOCK( &ld->ld_options.ldo_mutex );
|
LDAP_MUTEX_UNLOCK( &ld->ld_options.ldo_mutex );
|
||||||
if ( rc == -1 ) {
|
if ( rc == -1 ) {
|
||||||
ld->ld_errno = LDAP_ENCODING_ERROR;
|
ld->ld_errno = LDAP_ENCODING_ERROR;
|
||||||
|
ber_free( ber, 1 );
|
||||||
LDAP_CONN_UNLOCK_IF(m_noconn);
|
LDAP_CONN_UNLOCK_IF(m_noconn);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
@ -334,6 +335,7 @@ ldap_send_server_request(
|
||||||
rc = -1;
|
rc = -1;
|
||||||
}
|
}
|
||||||
if ( rc ) {
|
if ( rc ) {
|
||||||
|
ber_free( ber, 1 );
|
||||||
LDAP_CONN_UNLOCK_IF(m_noconn);
|
LDAP_CONN_UNLOCK_IF(m_noconn);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue