1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

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)
This commit is contained in:
Simo Sorce 2008-06-15 11:11:14 -04:00
parent 7a2d162414
commit 59ce567491

View File

@ -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);