summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-07-18 05:05:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-07-18 05:05:31 +0930
commit5716570cbc1db1bf0d60441622f79ac934443232 (patch)
tree8c19b3b66828c5158229d8bed93be5e82bc231fa
parent32c69e6e2a089812610599ee9e0e832d2ffe195a (diff)
downloadsamba-5716570cbc1db1bf0d60441622f79ac934443232.tar.gz
samba-5716570cbc1db1bf0d60441622f79ac934443232.tar.bz2
samba-5716570cbc1db1bf0d60441622f79ac934443232.zip
source3/winbindd/idmap_tdb_common.c: fix stackframe leak
idmap_tdb_common_sid_to_unixid() doesn't always free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--source3/winbindd/idmap_tdb_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c
index 6f700b848b..2b16d0ba31 100644
--- 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;
}