[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Memory leak with ldap_first_attribute()/ldap_next_attribute()?



At 01:16 PM 10/4/00 -0500, Randy Kunkee wrote:
>> You need to do a ldap_memfree on each attribute returned by
>> ldap_first_attribute or ldap_next_attribute
>> 
>> -Steve
>
>No, no, this is wrong.

Wrong for RFC 1823 and OpenLDAP 1.x.
Right for latest IETF LDAP C API draft and OpenLDAP 2.x.

Note that the section(3) manual pages have yet to be updated.