From 10ffa87b6b7ebfe51e81819feb93a72e9ec10418 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 15 Jun 2008 11:11:14 -0400 Subject: [PATCH] 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 --- source/lib/ldb/common/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c index 22cd46d13f8..d0570c53821 100644 --- a/source/lib/ldb/common/ldb.c +++ b/source/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); -- 2.47.2