diff options
author | Jeremy Allison <jra@samba.org> | 2008-11-12 14:06:47 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-11-12 14:06:47 -0800 |
commit | d67e7f3e15d73201dce2b73ce74c5d5c1cbcf524 (patch) | |
tree | 18f9ba00c39ddf31241ec8497440a6e04717ed7c /source3 | |
parent | d38bffd4126062b92384f0930196059441a2d765 (diff) | |
download | samba-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')
-rw-r--r-- | source3/winbindd/winbindd_passdb.c | 1 |
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; } |