fuzz: Adds fuzz target for parse_jobs_ini
[fio.git] / init.c
diff --git a/init.c b/init.c
index f9c20bdb17993e6f5c1003ace756af91d914c47f..cda16c4d7a6b5627901a429bc9c0553533c92884 100644 (file)
--- a/init.c
+++ b/init.c
@@ -327,6 +327,7 @@ void free_threads_shm(void)
 
 static void free_shm(void)
 {
+#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
        if (nr_segments) {
                flow_exit();
                fio_debug_jobp = NULL;
@@ -343,6 +344,7 @@ static void free_shm(void)
        fio_filelock_exit();
        file_hash_exit();
        scleanup();
+#endif
 }
 
 static int add_thread_segment(void)