mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix memory leak
This commit is contained in:
parent
36880023b6
commit
12e9ed8e12
@ -68,6 +68,7 @@ ldap_first_attribute( LDAP *ld, LDAPMessage *entry, BerElement **berout )
|
||||
|
||||
if ( ber_pvt_ber_remaining( ber ) == 0 ) {
|
||||
assert( len == 0 );
|
||||
ber_free( ber, 0 );
|
||||
return NULL;
|
||||
}
|
||||
assert( len != 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user