tevent: add tevent_common_check_double_free() helper function
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Apr 2018 14:33:47 +0000 (16:33 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 11 Jul 2018 21:04:19 +0000 (23:04 +0200)
commit58fa08c80562490bd774f4dc774dc1ce3a042f3c
tree40fd831c11947cc3a92a17dd29605943e83d57fb
parent157df4da26aeb46eedf1a0f3895cc5fbc751f1dc
tevent: add tevent_common_check_double_free() helper function

This will be used to generically support TALLOC_FREE() on
event which are currently running.

It aborts on every explicit talloc_free(), but ignores implicit
cleanup when the talloc parent is about to go.

We'll undo the 0.9.36 ABI change on the 0.9.37 release
at the end of this patchset.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/tevent/ABI/tevent-0.9.36.sigs
lib/tevent/tevent.c
lib/tevent/tevent_internal.h