correctly free thread_data options at the topmost parent process
authorDenis Pronin <dannftk@yandex.ru>
Thu, 27 Jul 2023 22:26:22 +0000 (01:26 +0300)
committerDenis Pronin <dannftk@yandex.ru>
Fri, 28 Jul 2023 09:40:06 +0000 (12:40 +0300)
commit913028e97ceedcf2cf1ec6ec32228b3c50e7337c
treef2f3e68f795b8d634a98f3e95160d168c4dbde35
parent13229219c961d4b61d16b67d007a4c34de00c49b
correctly free thread_data options at the topmost parent process

for non-threaded mode: since thread_data::eo is a pointer within shared
memory between the topmost fio parent process and its children let the
fio parent process set the pointer to NULL as just it frees its copy of
'eo' as memory previously allocated by means of 'malloc' meaning that
each child and the parent process itself must free it

for threaded mode we leave it as it has always been

also we do not need to check td->io_ops for being able to free td->eo in
 fio_options_free()

Signed-off-by: Denis Pronin <dannftk@yandex.ru>
backend.c
ioengines.c
options.c