summaryrefslogtreecommitdiffstats
path: root/source/passdb
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
commit25bbc9a6613bef0f3f73ecf634a38a9d56020f40 (patch)
tree75549c9c3eee922ac8d58279c978708630f72e14 /source/passdb
parent9993f8d1af23735f3a4b6de82f5825a6a6ba22d6 (diff)
downloadsamba-25bbc9a6613bef0f3f73ecf634a38a9d56020f40.tar.gz
samba-25bbc9a6613bef0f3f73ecf634a38a9d56020f40.tar.xz
samba-25bbc9a6613bef0f3f73ecf634a38a9d56020f40.zip
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.
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/lookup_sid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c
index e832779f3b2..43c86ff0d6a 100644
--- a/source/passdb/lookup_sid.c
+++ b/source/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: