git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c886e9b
)
tevent: Allocate tevent_ops_list structures in autofree context
author
Kamen Mazdrashki
<kamenim@samba.org>
Mon, 8 Sep 2014 04:09:23 +0000
(06:09 +0200)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 1 Oct 2014 00:35:55 +0000
(
02:35
+0200)
This is to reduce the noise when doing memory leak checking
in Unit tests for instance
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
lib/tevent/tevent.c
patch
|
blob
|
history
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;