diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-24 19:13:05 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-08 21:11:45 +0200 |
commit | e36e67fe047dca505b675c4b6b79b9670a9ad91b (patch) | |
tree | be22b44e9fe45fbaf0a4c04ceb24c33b962b1f2a | |
parent | b5ed09c3afe2c9122db6eec6dd994588d7d6a2c1 (diff) | |
download | samba-e36e67fe047dca505b675c4b6b79b9670a9ad91b.tar.gz samba-e36e67fe047dca505b675c4b6b79b9670a9ad91b.tar.bz2 samba-e36e67fe047dca505b675c4b6b79b9670a9ad91b.zip |
tevent: Do not use talloc_autofree_context
-rw-r--r-- | lib/tevent/tevent.c | 5 | ||||
-rw-r--r-- | lib/tevent/tevent_signal.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index a91e568931..4849bc162f 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -88,7 +88,7 @@ bool tevent_register_backend(const char *name, const struct tevent_ops *ops) } } - e = talloc(talloc_autofree_context(), struct tevent_ops_list); + e = talloc(NULL, struct tevent_ops_list); if (e == NULL) return false; e->name = name; @@ -104,8 +104,7 @@ bool tevent_register_backend(const char *name, const struct tevent_ops *ops) void tevent_set_default_backend(const char *backend) { talloc_free(tevent_default_backend); - tevent_default_backend = talloc_strdup(talloc_autofree_context(), - backend); + tevent_default_backend = talloc_strdup(NULL, backend); } /* diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index 45f65cf6dd..dbab8a8ada 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -210,7 +210,7 @@ struct tevent_signal *tevent_common_add_signal(struct tevent_context *ev, /* the sig_state needs to be on a global context as it can last across multiple event contexts */ if (sig_state == NULL) { - sig_state = talloc_zero(talloc_autofree_context(), struct tevent_sig_state); + sig_state = talloc_zero(NULL, struct tevent_sig_state); if (sig_state == NULL) { return NULL; } |