From: Denis Pronin Date: Wed, 9 Mar 2022 12:37:01 +0000 (+0300) Subject: - fixed memory leak in parent process detected by ASAN when forking and not freeing... X-Git-Tag: fio-3.30~19^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=36aac34e8db7cd58bb2dc522875285c46c732440;p=fio.git - 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 --- 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)) {