summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-31 16:19:47 -0500
committerAdam <Adam@anope.org>2012-01-31 16:19:47 -0500
commitce2a0f72d423341cf44b3daf8464ba1503653d3b (patch)
treec44bf035ea115cb29971b2ebe8bfde5662ec6f3a
parentbe5ba495f9319c3fbd388e2ecbc5af60bebb60d7 (diff)
Fixed a memory leak in m_ldap
-rw-r--r--modules/extra/m_ldap.cpp1
1 files changed, 1 insertions, 0 deletions
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)