[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7806) memory leak in contrib/ldapc++/LDAPAsynConnection.cpp
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7806) memory leak in contrib/ldapc++/LDAPAsynConnection.cpp
- From: quanah@zimbra.com
- Date: Fri, 15 May 2015 01:48:14 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
--On Wednesday, February 26, 2014 6:15 PM +0000 kevpatt@khptech.com wrote:
> Full_Name: Kevin H. Patterson
> Version: git master HEAD
> OS: macosx 10.9.1
> URL:
> http://campus.hartland.edu/temp/0001-fixed-memory-leak-in-LDAPAsynConnect
> ion.cpp.patch Submission from: (NULL) (65.207.4.130)
>
>
> In libldapcpp, there is a memory leak in the LDAPAsynConnection class.
> ldap_initialize() allocates memory which is never freed. This memory (ld
> structure) should be freed by a call to ldap_unbind() in the class
> destructor and other places where the ld structure is replaced with a new
> one.
>
> I have included a patch against git master HEAD below.
According to a ldap c++ user, this patch causes code to segv. Please see
<https://www.openldap.org/its/private.cgi/?findid=8143>
--Quanah
--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration