- freeing job_sections array of strings upon freeing each its item in init.c
[fio.git] / init.c
diff --git a/init.c b/init.c
index 81c30f8c54819354047800b56992a46d10549c3d..b7f866e65972b7882e123669cb7ec871404f2630 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2185,6 +2185,10 @@ static int __parse_jobs_ini(struct thread_data *td,
                i++;
        }
 
+       free(job_sections);
+       job_sections = NULL;
+       nr_job_sections = 0;
+
        free(opts);
 out:
        free(string);