Fix memory leak

This commit is contained in:
Kurt Zeilenga 2001-02-03 01:49:12 +00:00
parent 36880023b6
commit 12e9ed8e12

View File

@ -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 );