Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
authorJeremy Allison <jra@samba.org>
Sat, 27 Oct 2007 00:58:28 +0000 (17:58 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 27 Oct 2007 00:58:28 +0000 (17:58 -0700)
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.

source/passdb/lookup_sid.c

index e832779f3b2c0dd7803b74e479e49f0d49483b0e..43c86ff0d6a85ded57395bf8facaa1a9e05ae681 100644 (file)
@@ -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: