]> git.sur5r.net Git - openldap/commitdiff
Fix memory leak
authorKurt Zeilenga <kurt@openldap.org>
Sat, 3 Feb 2001 01:49:12 +0000 (01:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 3 Feb 2001 01:49:12 +0000 (01:49 +0000)
libraries/libldap/getattr.c

index 5ffc1fa81e7af03fc19cf4e0ea3cfd191b05d3d9..4dbe3c3fb9e826e8e6f4aae00ebcf93e30a99339 100644 (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 );