From 1555d5acf52bcb6459b209a59c877221ee0fea72 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 11 Oct 2010 17:20:19 +1100 Subject: s4-ldb Don't use talloc_autofree_context() in ldb The private event context only needs to live as long as ldb itself. Andrew Bartlett --- source4/lib/ldb/common/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 34d64ebb7a..f1eb6b64d5 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -97,7 +97,7 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx) /* FIXME: Hack a new event context so that CMD line utilities work * until we have them all converted */ if (ev_ctx == NULL) { - ev_ctx = tevent_context_init(talloc_autofree_context()); + ev_ctx = tevent_context_init(ldb); tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb); tevent_loop_allow_nesting(ev_ctx); } -- cgit