Merge branch 'master' of https://github.com/yashi/fio
[fio.git] / ioengines.c
index 7951ff32e25c3e5090ebbc212731c6e0e86648a4..cec0c760f4a4a2c8c5cc089b8abc6d843dc492ea 100644 (file)
@@ -194,8 +194,10 @@ void free_ioengine(struct thread_data *td)
                td->eo = NULL;
        }
 
-       if (td->io_ops_dlhandle)
+       if (td->io_ops_dlhandle) {
                dlclose(td->io_ops_dlhandle);
+               td->io_ops_dlhandle = NULL;
+       }
 
        td->io_ops = NULL;
 }