]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-dsdb: Remove unused tmp_ctx leaked onto long-term ldb_context
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 Sep 2012 01:29:46 +0000 (11:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 1 Sep 2012 01:33:20 +0000 (03:33 +0200)
This was found based on a log provided by Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>.  Thanks Ricky!

Andrew Bartlett

source4/dsdb/common/util.c

index 5d73df2ec392e1cf3f216d75ed09d29a00ad8cc1..a2ff688cfa707eec7c93028561d23d3a5763a146 100644 (file)
@@ -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;
        }