diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 17:20:19 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 13:02:16 +0000 |
commit | 1555d5acf52bcb6459b209a59c877221ee0fea72 (patch) | |
tree | 485ae1c18f43f9c5f59b1415148b01552d4be0b1 /source4 | |
parent | 69199a96d1a3f134e2c80ef338b5600baabae8f9 (diff) | |
download | samba-1555d5acf52bcb6459b209a59c877221ee0fea72.tar.gz samba-1555d5acf52bcb6459b209a59c877221ee0fea72.tar.bz2 samba-1555d5acf52bcb6459b209a59c877221ee0fea72.zip |
s4-ldb Don't use talloc_autofree_context() in ldb
The private event context only needs to live as long as ldb itself.
Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 34d64ebb7a..f1eb6b64d5 100644 --- 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); } |