summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-11-12 14:06:47 -0800
committerJeremy Allison <jra@samba.org>2008-11-12 14:06:47 -0800
commitd67e7f3e15d73201dce2b73ce74c5d5c1cbcf524 (patch)
tree18f9ba00c39ddf31241ec8497440a6e04717ed7c /source3/winbindd
parentd38bffd4126062b92384f0930196059441a2d765 (diff)
downloadsamba-d67e7f3e15d73201dce2b73ce74c5d5c1cbcf524.tar.gz
samba-d67e7f3e15d73201dce2b73ce74c5d5c1cbcf524.tar.bz2
samba-d67e7f3e15d73201dce2b73ce74c5d5c1cbcf524.zip
Fix memory leak in error path, spotted by Martin Zielinski <mz@seh.de>.
Jeremy.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_passdb.c1
1 files changed, 1 insertions, 0 deletions
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;
}