git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d38bffd
)
Fix memory leak in error path, spotted by Martin Zielinski <mz@seh.de>.
author
Jeremy Allison
<jra@samba.org>
Wed, 12 Nov 2008 22:06:47 +0000
(14:06 -0800)
committer
Jeremy Allison
<jra@samba.org>
Wed, 12 Nov 2008 22:06:47 +0000
(14:06 -0800)
Jeremy.
source3/winbindd/winbindd_passdb.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_passdb.c
b/source3/winbindd/winbindd_passdb.c
index 5677c01be140232fdf66687d73137aa868905274..0cf4540cfef02ee0bd0972e614740a76ce776fd0 100644
(file)
--- 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;
}