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

Antwort: Re: memory leak problem.



I have built my own debian package with your patch already applied in the
source.
If a connection lasts for a long time and then is disconnected, the thread
remains open  and the mem is not freed.
But why ?
Is that a threading problem ?
Has anyone traced the ber_memfree function in the liblber ?
I have to restart my server one time e week.
But if a look at the pstree i see that slaps forks the child and then the
child forks three processes. (Weird, or not ?.)
Problem with pthreads ?
It would be interesting where the problem arise !!!

Franz



____________________________________________________
Franz Skale
mainwork information technology AG
IT-Services
Tech Gate Vienna
Donaucitystrasse 1
A-1220 Wien
Tel: +43 1 333 48 58-0
Fax: +43 1 333 48 58-24
e-mail: f.skale@mainwork.com
Internet: http://www.mainwork.com


                                                                                                                                 
                    John Morrissey                                                                                               
                    <jwm@horde.net>                   An:     openldap-software@OpenLDAP.org                                     
                    Gesendet von:                     Kopie:                                                                     
                    owner-openldap-software@Op        Thema:  Re: memory leak problem.                                           
                    enLDAP.org                                                                                                   
                                                                                                                                 
                                                                                                                                 
                    29.04.2002 16:38                                                                                             
                                                                                                                                 
                                                                                                                                 




On Mon, Apr 29, 2002 at 06:24:33PM +0530, A.Gayathri wrote:
% The details of the memory leak that was given earlier are as follows:
[snip]
% If anybody knows, Please do tell me the way to free
these...........Thanks
% in advance.

Can you apply the following patch, re-run your profiling and let me know
how
it goes?

thanks,
john

--- libraries/libldap/open.c.orig         Mon Apr 29 10:33:35 2002
+++ libraries/libldap/open.c        Mon Apr 29 10:37:29 2002
@@ -123,6 +123,7 @@
 #endif

           ld->ld_options.ldo_defludp =
ldap_url_duplist(gopts->ldo_defludp);
+          ldap_free_urldesc( gopts->ldo_defludp );

           if ( ld->ld_options.ldo_defludp == NULL ) {
                     LDAP_FREE( (char*)ld );

--
John Morrissey          _o            /\         ----  __o
jwm@horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__