init: pass in right pointer to def thread options free
authorJens Axboe <axboe@fb.com>
Mon, 12 Sep 2016 01:14:10 +0000 (19:14 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 12 Sep 2016 01:14:10 +0000 (19:14 -0600)
Fixes: a609f12a1701 ("options: remove dependency of 'o' being first in 'td'")
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c

diff --git a/init.c b/init.c
index 4b4a86a6fe2421459a7f8bf1feaf15c58215baf3..bc17b40213a5bacdcecae2ca89e937ef86d6c8b8 100644 (file)
--- a/init.c
+++ b/init.c
@@ -309,7 +309,7 @@ static void free_shm(void)
        free(trigger_remote_cmd);
        trigger_file = trigger_cmd = trigger_remote_cmd = NULL;
 
-       options_free(fio_options, &def_thread);
+       options_free(fio_options, &def_thread.o);
        fio_filelock_exit();
        scleanup();
 }