diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-09-01 11:29:46 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-09-01 03:33:20 +0200 |
commit | 01ade93c7c0c2f2e992f5295976bbfc20429023a (patch) | |
tree | 2bb1e7dd2324c7a9704130a80aea1ea9b809598c | |
parent | c256566aa97e040a9b3007c779b1006d20462ccb (diff) | |
download | samba-01ade93c7c0c2f2e992f5295976bbfc20429023a.tar.gz samba-01ade93c7c0c2f2e992f5295976bbfc20429023a.tar.bz2 samba-01ade93c7c0c2f2e992f5295976bbfc20429023a.zip |
s4-dsdb: Remove unused tmp_ctx leaked onto long-term ldb_context
This was found based on a log provided by Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>. Thanks Ricky!
Andrew Bartlett
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 5d73df2ec3..a2ff688cfa 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1618,12 +1618,10 @@ int samdb_reference_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_ int samdb_dn_is_our_ntdsa(struct ldb_context *ldb, struct ldb_dn *dn, bool *is_ntdsa) { NTSTATUS status; - TALLOC_CTX *tmp_ctx = talloc_new(ldb); struct GUID dn_guid; const struct GUID *our_ntds_guid; status = dsdb_get_extended_dn_guid(dn, &dn_guid, "GUID"); if (!NT_STATUS_IS_OK(status)) { - talloc_free(tmp_ctx); return LDB_ERR_OPERATIONS_ERROR; } |