summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-07-12 16:44:07 -0600
committerJens Axboe <axboe@kernel.dk>2017-07-12 16:44:07 -0600
commit43f466e667a8bcfc58c1c69b0897fe0345c34841 (patch)
treebab210e52e5bffab6e25894346fc535116a61496 /parse.c
parentdae887f3e2ac761886980cd3197522f3be46082d (diff)
downloadfio-43f466e667a8bcfc58c1c69b0897fe0345c34841.tar.gz
fio-43f466e667a8bcfc58c1c69b0897fe0345c34841.tar.bz2
parse: enable options to be marked dont-free
For profiles, we can't free the options prematurely. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 4d4fddde..ecce8b89 100644
--- a/parse.c
+++ b/parse.c
@@ -1345,7 +1345,7 @@ void options_free(struct fio_option *options, void *data)
dprint(FD_PARSE, "free options\n");
for (o = &options[0]; o->name; o++) {
- if (o->type != FIO_OPT_STR_STORE || !o->off1)
+ if (o->type != FIO_OPT_STR_STORE || !o->off1 || o->no_free)
continue;
ptr = td_var(data, o, o->off1);