summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-02-21 11:11:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:42 -0500
commitf17c4ad8aed64484d448a8c9bcb8c91e4bf13146 (patch)
treeeeaa384aee702893ddc5ff43d5f6dc56033ef632 /source3
parentdc0ec444833be678c5f8cdcf861a46ebe3d2955c (diff)
downloadsamba-f17c4ad8aed64484d448a8c9bcb8c91e4bf13146.tar.gz
samba-f17c4ad8aed64484d448a8c9bcb8c91e4bf13146.tar.bz2
samba-f17c4ad8aed64484d448a8c9bcb8c91e4bf13146.zip
r5481: Fix a memleak
(This used to be commit 36bcfc5dae99868fc94ca01f902fec3d19926f5e)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 2 insertions, 0 deletions
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)) {