Free io_u related structures before killing IO engine
[fio.git] / backend.c
index 1b5c2eb0a6bb7f86587281106adb90e63af42fc9..a71d768d22d89437e4a6cde828c24c36bb28ecbf 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1287,8 +1287,8 @@ err:
                verify_async_exit(td);
 
        close_and_free_files(td);
-       close_ioengine(td);
        cleanup_io_u(td);
+       close_ioengine(td);
        cgroup_shutdown(td, &cgroup_mnt);
 
        if (td->o.cpumask_set) {