1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

tevent: Do not use talloc_autofree_context

This commit is contained in:
Volker Lendecke 2010-09-24 19:13:05 +02:00
parent b5ed09c3af
commit e36e67fe04
2 changed files with 3 additions and 4 deletions

View File

@ -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);
}
/*

View File

@ -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;
}