Add a REPORTING-BUGS file
[fio.git] / init.c
diff --git a/init.c b/init.c
index 1e0eeccfdc6e5dcbf0b95b0fa479e111108826f6..c1f774d8e03f42df01dd5c0298a2013d0ba6343b 100644 (file)
--- a/init.c
+++ b/init.c
@@ -115,6 +115,9 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent)
        td = &threads[thread_number++];
        *td = *parent;
 
+       dup_files(td, parent);
+       options_mem_dupe(td);
+
        td->thread_number = thread_number;
        return td;
 }
@@ -799,6 +802,7 @@ int parse_options(int argc, char *argv[])
        }
 
        free(ini_file);
+       options_mem_free(&def_thread);
 
        if (!thread_number) {
                log_err("No jobs defined(s)\n");