From ce2a0f72d423341cf44b3daf8464ba1503653d3b Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 31 Jan 2012 16:19:47 -0500 Subject: [PATCH] Fixed a memory leak in m_ldap --- modules/extra/m_ldap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp index 835215533..ab0aaa928 100644 --- a/modules/extra/m_ldap.cpp +++ b/modules/extra/m_ldap.cpp @@ -291,6 +291,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition attrs.push_back(vals[j]->bv_val); attributes[attr] = attrs; + ldap_value_free_len(vals); ldap_memfree(attr); } if (ber != NULL)