From f17c4ad8aed64484d448a8c9bcb8c91e4bf13146 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Feb 2005 11:11:13 +0000 Subject: r5481: Fix a memleak (This used to be commit 36bcfc5dae99868fc94ca01f902fec3d19926f5e) --- source3/passdb/pdb_ldap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index e8facf1c2e..0a0426ef2a 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3268,6 +3268,8 @@ and will risk BDCs having inconsistant SIDs\n")); } ldap_state->domain_dn = smb_xstrdup(dn); + ldap_memfree(dn); + if (smbldap_get_single_pstring(ldap_state->smbldap_state->ldap_struct, entry, get_userattr_key2string(ldap_state->schema_ver, LDAP_ATTR_USER_SID), domain_sid_string)) { -- cgit