diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-26 17:58:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-26 17:58:28 -0700 |
commit | 101dc361625606341a55dbb65aa33d94cf1cd9c8 (patch) | |
tree | a42339e40e0f65081ce80a1f08dafec2c4465bad /source3/passdb/lookup_sid.c | |
parent | 73eefd6b722992da6abab053154a3ffd2b9f54d0 (diff) | |
download | samba-101dc361625606341a55dbb65aa33d94cf1cd9c8.tar.gz |
Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.
(This used to be commit 25bbc9a6613bef0f3f73ecf634a38a9d56020f40)
Diffstat (limited to 'source3/passdb/lookup_sid.c')
-rw-r--r-- | source3/passdb/lookup_sid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index e832779f3b2..43c86ff0d6a 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -880,6 +880,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids, *ret_domains = dom_infos; *ret_names = name_infos; + TALLOC_FREE(tmp_ctx); return NT_STATUS_OK; fail: |