From 101dc361625606341a55dbb65aa33d94cf1cd9c8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 Oct 2007 17:58:28 -0700 Subject: Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" . We aren't currently leaking memory, but are leaving it around for longer than we need to. Jeremy. (This used to be commit 25bbc9a6613bef0f3f73ecf634a38a9d56020f40) --- source3/passdb/lookup_sid.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index e832779f3b..43c86ff0d6 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: -- cgit