From: Jeremy Allison Date: Wed, 12 Nov 2008 22:03:54 +0000 (-0800) Subject: Fix memory leak in error path, spotted by Martin Zielinski . X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2b17597ea4ad171411a972ba4aa0c14b0f2b058;p=thirdparty%2Fsamba.git Fix memory leak in error path, spotted by Martin Zielinski . Jeremy. --- diff --git a/source/winbindd/winbindd_passdb.c b/source/winbindd/winbindd_passdb.c index 5677c01be14..0cf4540cfef 100644 --- a/source/winbindd/winbindd_passdb.c +++ b/source/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; }