]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix memory leak in error path, spotted by Martin Zielinski <mz@seh.de>.
authorJeremy Allison <jra@samba.org>
Wed, 12 Nov 2008 22:09:22 +0000 (14:09 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 12 Nov 2008 22:09:22 +0000 (14:09 -0800)
Jeremy.

source/nsswitch/winbindd_passdb.c

index 56bce1a1130db3969b3adc716cda8c3ac716cf51..ad629283ee41bdd99910772e8824ada7d7930207 100644 (file)
@@ -220,6 +220,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
        }
 
        if (!pdb_getsampwsid(user, user_sid ) ) {
+               TALLOC_FREE( user );
                return NT_STATUS_NO_SUCH_USER;
        }