Merge branch 'free-dump-options' of https://github.com/floatious/fio
[fio.git] / options.c
index 7074716ca053b53d23aa27daf8818e59ea6d1fb7..151e7a7e15fe600599ce9157b573454d79b1a98f 100644 (file)
--- a/options.c
+++ b/options.c
@@ -5461,6 +5461,19 @@ void fio_options_free(struct thread_data *td)
        }
 }
 
        }
 }
 
+void fio_dump_options_free(struct thread_data *td)
+{
+       while (!flist_empty(&td->opt_list)) {
+               struct print_option *p;
+
+               p = flist_first_entry(&td->opt_list, struct print_option, list);
+               flist_del_init(&p->list);
+               free(p->name);
+               free(p->value);
+               free(p);
+       }
+}
+
 struct fio_option *fio_option_find(const char *name)
 {
        return find_option(fio_options, name);
 struct fio_option *fio_option_find(const char *name)
 {
        return find_option(fio_options, name);