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

Re: FW: ldap_memfree

At 05:45 PM 2/21/00 +0100, Kiefer, Klaus wrote:
>as described in the attached page, I have some trouble
>with the missing function 'ldap_memfree'. I tried the
>workaround you suggested (#define ldapmemfree free), but
>I still get a Segmentation fault in 'chunk_free' when
>freeing the memory for an attribute name (which I got
>from 'ldap_first_attribute' or 'ldap_next_attribute').

This indicates that your code is flawed.  You are likely
not properly handling the memory per defined (RFC 1823/
U-Mich LDAP 3.3) semantics.  In particular, you
shouldn't be freeing the address returned by

See ldap_first_attribute(3) or RFC 1823.