git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32c69e6
)
source3/winbindd/idmap_tdb_common.c: fix stackframe leak
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:35:31 +0000
(
05:05
+0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:35:31 +0000
(
05:05
+0930)
idmap_tdb_common_sid_to_unixid() doesn't always free its stackframe.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/winbindd/idmap_tdb_common.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_tdb_common.c
b/source3/winbindd/idmap_tdb_common.c
index 6f700b848b7f18c0068915905791e962dd97e700..2b16d0ba31868c8a226dea41e933503a26ae08cd 100644
(file)
--- a/
source3/winbindd/idmap_tdb_common.c
+++ b/
source3/winbindd/idmap_tdb_common.c
@@
-462,6
+462,7
@@
NTSTATUS idmap_tdb_common_sid_to_unixid(struct idmap_domain * dom,
TALLOC_CTX *tmp_ctx = talloc_stackframe();
if (!dom || !map) {
+ talloc_free(tmp_ctx);
return NT_STATUS_INVALID_PARAMETER;
}