tevent: add/use tevent_req_destructor
authorStefan Metzmacher <metze@samba.org>
Fri, 27 Sep 2013 01:41:29 +0000 (03:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 Jan 2014 11:38:08 +0000 (12:38 +0100)
commit0ed93e099af833045d9d00b9a8faeb5b93b6ef2e
tree4d79362476c3b6f3e772d2220f04ecb0902f6d67
parent7502a309e8b817036c1ddc38740c214ae416bf29
tevent: add/use tevent_req_destructor

This makes sure we call tevent_req_received(req) on talloc_free()
and cleanup things in a defined order.

Note that some callers used their own destructor for their
tevent_req instance, they'll just overwrite this,
which is not intended, but works without problems.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tevent/tevent_req.c