Merge branch 'zipf-pareto-lock' of https://github.com/aclamk/fio
[fio.git] / init.c
diff --git a/init.c b/init.c
index 42fc8a4ecc66e344135ebd9aa52efb2ac87d355a..1d14df169d0919e1a868320272ea68b646999e2d 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)