git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69199a9
)
s4-ldb Don't use talloc_autofree_context() in ldb
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 11 Oct 2010 06:20:19 +0000
(17:20 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 11 Oct 2010 13:02:16 +0000
(13:02 +0000)
The private event context only needs to live as long as ldb itself.
Andrew Bartlett
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 34d64ebb7ac7ba7cc85c1cf0e9c325327314a1be..f1eb6b64d591629826ce7583c9507ac7942923c4 100644
(file)
--- a/
source4/lib/ldb/common/ldb.c
+++ b/
source4/lib/ldb/common/ldb.c
@@
-97,7
+97,7
@@
struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_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 = tevent_context_init(
talloc_autofree_context()
);
+ ev_ctx = tevent_context_init(
ldb
);
tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb);
tevent_loop_allow_nesting(ev_ctx);
}