options: pass in right pointer to options free
authorJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:57:09 +0000 (09:57 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:57:09 +0000 (09:57 -0600)
Fixes: a609f12a1701 ("options: remove dependency of 'o' being first in 'td'")
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 6161ac8fd22986f272528ce06bf91b15b09431b8..517ee68abc4d6b017860760173996f27825ec081 100644 (file)
--- a/options.c
+++ b/options.c
@@ -4689,7 +4689,7 @@ void del_opt_posval(const char *optname, const char *ival)
 
 void fio_options_free(struct thread_data *td)
 {
-       options_free(fio_options, td);
+       options_free(fio_options, &td->o);
        if (td->eo && td->io_ops && td->io_ops->options) {
                options_free(td->io_ops->options, td->eo);
                free(td->eo);