tevent/testsuite: make sure we cleanup tevent_fd structures in the correct order
authorStefan Metzmacher <metze@samba.org>
Fri, 29 May 2015 23:42:08 +0000 (01:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jun 2015 15:08:17 +0000 (17:08 +0200)
commit88971d4870a197f656ef912911ca1e4ff5b56749
tree6a328ba57743519e84b3a51f450714a9be2c76d3
parentb3a18d66c00dba73a3f56a6f95781b4d34db1fe2
tevent/testsuite: make sure we cleanup tevent_fd structures in the correct order

First we need to remove the tevent_fd structures without
tevent_fd_set_auto_close(). Closing the fd needs to be the last
thing...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316

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