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

Re: memory leak problem.



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/    __(_)/_(_)________/    \_______(_) /_(_)__