Fix double io_u free in error path
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index fead400cd7c5759d34ad2210f06c5ecee0335145..e96d495658c7b127b065f92d934f6b76d01cfa3a 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -487,7 +487,7 @@ set_file:
 
                        if (!f || (ret = td_io_open_file(td, f))) {
                                put_io_u(td, io_u);
-                               break;
+                               return NULL;
                        }
                        goto set_file;
                }