Fix file open leak
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index e4671e42ac741557006ce7056dd863508b60280c..5383dcae4253d8871df7cec3732db413f592f0f5 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -793,8 +793,7 @@ set_file:
                if (td->nr_open_files < td->o.open_files &&
                    td->o.open_files != td->o.nr_files) {
                        f = find_next_new_file(td);
-
-                       if (!f || td_io_open_file(td, f))
+                       if (!f)
                                return 1;
 
                        goto set_file;