From 5cc895983d9d9e9a0acfaa6a3dfa97f14d9d94c6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 Oct 2009 16:55:40 -0700 Subject: Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind Jeremy. --- source3/winbindd/idmap_ldap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/winbindd/idmap_ldap.c') 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 ); -- cgit