summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-21 11:02:45 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-21 11:10:02 +0200
commitc38f94ed9b68f53721421c91f74a8bd1f30efd4d (patch)
treea509fe93f8d96e0b2202c032396379c620e3091f
parent2352538362977e456e8d05783f2732ff650cea41 (diff)
downloadsamba-c38f94ed9b68f53721421c91f74a8bd1f30efd4d.tar.gz
samba-c38f94ed9b68f53721421c91f74a8bd1f30efd4d.tar.bz2
samba-c38f94ed9b68f53721421c91f74a8bd1f30efd4d.zip
s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx)
-rw-r--r--source4/dsdb/common/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 28061f3231..515d96d085 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2655,13 +2655,12 @@ int dsdb_load_partition_usn(struct ldb_context *ldb, struct ldb_dn *dn,
p_ctrl = talloc(req, struct dsdb_control_current_partition);
if (p_ctrl == NULL) {
- talloc_free(res);
+ talloc_free(tmp_ctx);
return LDB_ERR_OPERATIONS_ERROR;
}
p_ctrl->version = DSDB_CONTROL_CURRENT_PARTITION_VERSION;
p_ctrl->dn = dn;
-
ret = ldb_request_add_control(req,
DSDB_CONTROL_CURRENT_PARTITION_OID,
false, p_ctrl);