- fixed memory leak in parent process detected by ASAN when forking and not freeing...
[fio.git] / backend.c
index a21dfef637bb74c2d6bf645d7f0e6a025961c072..cd7f4e5f62e3fcf2c3df6d1699114a23b4a8ee88 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2441,6 +2441,8 @@ reap:
                                        _exit(ret);
                                } else if (i == fio_debug_jobno)
                                        *fio_debug_jobp = pid;
+                               free(fd);
+                               fd = NULL;
                        }
                        dprint(FD_MUTEX, "wait on startup_sem\n");
                        if (fio_sem_down_timeout(startup_sem, 10000)) {