summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-05-30 01:42:08 +0200
committerStefan Metzmacher <metze@samba.org>2015-06-12 17:08:17 +0200
commit88971d4870a197f656ef912911ca1e4ff5b56749 (patch)
tree6a328ba57743519e84b3a51f450714a9be2c76d3
parentb3a18d66c00dba73a3f56a6f95781b4d34db1fe2 (diff)
downloadsamba-88971d4870a197f656ef912911ca1e4ff5b56749.tar.gz
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>
-rw-r--r--lib/tevent/testsuite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c
index e9d1ef42837..c63c8780262 100644
--- a/lib/tevent/testsuite.c
+++ b/lib/tevent/testsuite.c
@@ -177,10 +177,10 @@ static bool test_event_context(struct torture_context *test,
}
}
- talloc_free(fde_read);
- talloc_free(fde_write);
talloc_free(fde_read_1);
talloc_free(fde_write_1);
+ talloc_free(fde_read);
+ talloc_free(fde_write);
while (alarm_count < fde_count+1) {
if (tevent_loop_once(ev_ctx) == -1) {