summaryrefslogtreecommitdiff
path: root/source3/passdb/lookup_sid.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-26 17:58:28 -0700
committerJeremy Allison <jra@samba.org>2007-10-26 17:58:28 -0700
commit101dc361625606341a55dbb65aa33d94cf1cd9c8 (patch)
treea42339e40e0f65081ce80a1f08dafec2c4465bad /source3/passdb/lookup_sid.c
parent73eefd6b722992da6abab053154a3ffd2b9f54d0 (diff)
downloadsamba-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.c1
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: