From d67e7f3e15d73201dce2b73ce74c5d5c1cbcf524 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Nov 2008 14:06:47 -0800 Subject: Fix memory leak in error path, spotted by Martin Zielinski . Jeremy. --- source3/winbindd/winbindd_passdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c index 5677c01be1..0cf4540cfe 100644 --- a/source3/winbindd/winbindd_passdb.c +++ b/source3/winbindd/winbindd_passdb.c @@ -267,6 +267,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, } if ( !pdb_getsampwsid( user, user_sid ) ) { + TALLOC_FREE( user ); return NT_STATUS_NO_SUCH_USER; } -- cgit