]> 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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:58 +0000 (10:11 +0100)
Jeremy.
(cherry picked from commit ba12ab479b3764e0d251d74401dc5fa31a48f83d)

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;
        }