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

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

h.b.furuseth@usit.uio.no wrote:
> 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.

This ITS shouldn't have been opened.  Bugs appearing from custom code
are 99.9% of the times related to bugs in custom code.  Discussion about
libldap use does not belong to OpenLDAP, unless it addresses something
specific to OpenLDAP's implementation.  In any case, this discussion
should at most take place on the OpenLDAP-software mailing list.  An ITS
shouldn't be opened until there is a clear evidence of a bug or an issue
with OpenLDAP software.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it