summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-06-15 11:11:14 -0400
committerSimo Sorce <idra@samba.org>2008-06-15 15:06:26 -0400
commit59ce56749130c4e3656e8c4aa9208005d93c6da6 (patch)
treea5fe0915bf6620d14aa94890db2f4d1a905f6188 /source4/lib
parent7a2d16241416fe8ae88541e1087aa502c6a5388c (diff)
downloadsamba-59ce56749130c4e3656e8c4aa9208005d93c6da6.tar.gz
samba-59ce56749130c4e3656e8c4aa9208005d93c6da6.tar.bz2
samba-59ce56749130c4e3656e8c4aa9208005d93c6da6.zip
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)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb.c2
1 files changed, 1 insertions, 1 deletions
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);