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

Re: Memory leak in ldap_initialize()



On Tue, Aug 13, 2002 at 05:53:17PM +0200, Yves Robin wrote:
% I'm facing a memory leak just when trying to bind and unbind to an
% openldap server. Since ldap_initialize allocate a new ld structure, unbind
% is supposed to free it, right ? Since ldap_initialize is not documented
% (right?), it's difficult to be sure...
% 
% I'm using openldap 2.0.11 library.
% 
% ldap_initialize()
% ldap_bind_s()
% ldap_unbind()
% 
% Anything wrong with that ?
% Should i free somehow else ?

There was a leak in the OpenLDAP libraries in this case; I believe it was
fixed in 2.0.19.

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