diff options
-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; } |