List Info

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




Re: (ITS#4960) the memory increase quickly and not can be released sometime.
country flaguser name
United States
2007-05-14 23:27:07
hoverwf126.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:

NOTES
    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.

-- 
Regards,
Hallvard



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )