git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9993f8d
)
Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
author
Jeremy Allison
<jra@samba.org>
Sat, 27 Oct 2007 00:58:28 +0000
(17:58 -0700)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source/passdb/lookup_sid.c
b/source/passdb/lookup_sid.c
index e832779f3b2c0dd7803b74e479e49f0d49483b0e..43c86ff0d6a85ded57395bf8facaa1a9e05ae681 100644
(file)
--- 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: