git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a2d162
)
Note that making ldb the event context parent seem to lead to races when
author
Simo Sorce
<idra@samba.org>
Sun, 15 Jun 2008 15:11:14 +0000
(11:11 -0400)
committer
Simo Sorce
<idra@samba.org>
Sun, 15 Jun 2008 19:06:26 +0000
(15:06 -0400)
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
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb.c
b/source4/lib/ldb/common/ldb.c
index 22cd46d13f8faa38783fb1011648c64ca4c90348..d0570c538211eefa2f9a5d45db10b910dab62ce9 100644
(file)
--- 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);