+#define string_to_net(dst, src) __string_to_net((dst), (src), sizeof(dst))
+
+static void free_thread_options_to_cpu(struct thread_options *o)
+{
+ int i;
+
+ free(o->description);
+ free(o->name);
+ free(o->wait_for);
+ free(o->directory);
+ free(o->filename);
+ free(o->filename_format);
+ free(o->opendir);
+ free(o->ioengine);
+ free(o->mmapfile);
+ free(o->read_iolog_file);
+ free(o->write_iolog_file);
+ free(o->bw_log_file);
+ free(o->lat_log_file);
+ free(o->iops_log_file);
+ free(o->hist_log_file);
+ free(o->replay_redirect);
+ free(o->exec_prerun);
+ free(o->exec_postrun);
+ free(o->ioscheduler);
+ free(o->profile);
+ free(o->cgroup);
+
+ for (i = 0; i < DDIR_RWDIR_CNT; i++) {
+ free(o->bssplit[i]);
+ free(o->zone_split[i]);
+ }
+}
+