From: Jens Axboe Date: Fri, 15 Dec 2017 20:35:56 +0000 (-0700) Subject: ioengines: clear out ->td_ops_dlhandle if we close it X-Git-Tag: fio-3.3~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9b50942ecec9c79fa82050c503fe313cfd87ac96 ioengines: clear out ->td_ops_dlhandle if we close it Signed-off-by: Jens Axboe --- diff --git a/ioengines.c b/ioengines.c index 7951ff32..cec0c760 100644 --- a/ioengines.c +++ b/ioengines.c @@ -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; }