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

Re: Memory leak withldap_first_attribute()/ldap_next_attribute()?



"Kurt D. Zeilenga" wrote:
> 
> 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.

Thanks a lot, it corrects the problem.

  I can precise that there should be such memory leaks in back-ldap
because it uses this kind of loop.
-- 
Bertrand Croq - VIRTUAL NET (http://www.virtual-net.fr)
80, avenue des Buttes de Coesmes - 35700 RENNES
tel: +33 2 23 21 06 30 - fax: +33 2 99 38 16 85