diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 05:05:31 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 05:05:31 +0930 |
commit | 5716570cbc1db1bf0d60441622f79ac934443232 (patch) | |
tree | 8c19b3b66828c5158229d8bed93be5e82bc231fa | |
parent | 32c69e6e2a089812610599ee9e0e832d2ffe195a (diff) | |
download | samba-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.c | 1 |
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; } |