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-15 01:11:09
h.b.furusethusit.uio.no wrote:
> 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.

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.

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

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




[1]

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