git.samba.org
/
kamenim
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tevent: Allocate tevent_ops_list structures in autofree context
[kamenim/samba.git]
/
lib
/
tevent
/
tevent.c
diff --git
a/lib/tevent/tevent.c
b/lib/tevent/tevent.c
index be0afd453bb4d5e9018cafbb6c413c3f6dbf1578..bbd8ac35ed3965197b26861979e690c200e13422 100644
(file)
--- 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(
NULL
, struct tevent_ops_list);
+ e = talloc(
talloc_autofree_context()
, struct tevent_ops_list);
if (e == NULL) return false;
e->name = name;