mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
Fix memory leak
This commit is contained in:
parent
36880023b6
commit
12e9ed8e12
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue