From 59ce56749130c4e3656e8c4aa9208005d93c6da6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 15 Jun 2008 11:11:14 -0400 Subject: Note that making ldb the event context parent seem to lead to races when freeing up resources. Try to avoid races by making the autofree context be the parent of the event system (This used to be commit 10ffa87b6b7ebfe51e81819feb93a72e9ec10418) --- source4/lib/ldb/common/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 22cd46d13f..d0570c5382 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -48,7 +48,7 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct event_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 = event_context_init(ldb); + ev_ctx = event_context_init(talloc_autofree_context()); } ret = ldb_setup_wellknown_attributes(ldb); -- cgit