From 36aac34e8db7cd58bb2dc522875285c46c732440 Mon Sep 17 00:00:00 2001 From: Denis Pronin Date: Wed, 9 Mar 2022 15:37:01 +0300 Subject: [PATCH] - fixed memory leak in parent process detected by ASAN when forking and not freeing memory in the parent process allocated for fork_data Signed-off-by: Denis Pronin --- backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend.c b/backend.c index a21dfef6..cd7f4e5f 100644 --- 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)) { -- 2.25.1