don't access dlclose'd dynamic ioengine object after close
[fio.git] / ioengines.c
index 3561bb4e6ed0da7289e1079a2d0ffbc7e8f9aa1d..dd61af07a4432c802ba53d18535c2dc44ea2a8bf 100644 (file)
@@ -234,7 +234,6 @@ void free_ioengine(struct thread_data *td)
        if (td->io_ops->dlhandle) {
                dprint(FD_IO, "dlclose ioengine %s\n", td->io_ops->name);
                dlclose(td->io_ops->dlhandle);
        if (td->io_ops->dlhandle) {
                dprint(FD_IO, "dlclose ioengine %s\n", td->io_ops->name);
                dlclose(td->io_ops->dlhandle);
-               td->io_ops->dlhandle = NULL;
        }
 
        td->io_ops = NULL;
        }
 
        td->io_ops = NULL;