summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-15 16:55:40 -0700
committerJeremy Allison <jra@samba.org>2009-10-15 16:55:40 -0700
commit5cc895983d9d9e9a0acfaa6a3dfa97f14d9d94c6 (patch)
tree6783d91d773b622da8b6876713142c0ea0e1f252 /source3/winbindd
parenta6e4cb500b4162cae1d906a1762507370b4ee89e (diff)
downloadsamba-5cc895983d9d9e9a0acfaa6a3dfa97f14d9d94c6.tar.gz
samba-5cc895983d9d9e9a0acfaa6a3dfa97f14d9d94c6.tar.bz2
samba-5cc895983d9d9e9a0acfaa6a3dfa97f14d9d94c6.zip
Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c
index 3d1dd488d6..375c04a0bf 100644
--- a/source3/winbindd/idmap_ldap.c
+++ b/source3/winbindd/idmap_ldap.c
@@ -131,6 +131,7 @@ static NTSTATUS get_credentials( TALLOC_CTX *mem_ctx,
DEBUG(2, ("get_credentials: Failed to lookup ldap "
"bind creds. Using anonymous connection.\n"));
anon = True;
+ *dn = NULL;
} else {
*dn = talloc_strdup(mem_ctx, user_dn);
SAFE_FREE( user_dn );