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

Re: (ITS#4960) the memory increase quickly and not can be released sometime.

hoverwf@126.com writes:
>        when i disable the code which get the attribute value of entry,
> in other word, both the for loop. this problem seems disappeared,

Yes.  Add ldap_memfree(a); to your inner loop, like
'man ldap_first_attribute' says:

    The ldap_first_attribute() and ldap_next_attribute()
    return dynamically allocated memory that must be
    freed by the caller via ldap_memfree(3).

This ITS will be closed.