Skip to content

Commit 6ce17ec

Browse files
committed
backend: revert bad memory leak fix
This essentially reverts the commit mentioned in the fixes line, as it causes crashes with using a trigger timeout + command. Fixes: 807473c ("fixed memory leak detected by ASAN") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent eb40b27 commit 6ce17ec

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

backend.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,10 +2451,8 @@ static void run_threads(struct sk_out *sk_out)
24512451
strerror(ret));
24522452
} else {
24532453
pid_t pid;
2454-
struct fio_file **files;
24552454
void *eo;
24562455
dprint(FD_PROCESS, "will fork\n");
2457-
files = td->files;
24582456
eo = td->eo;
24592457
read_barrier();
24602458
pid = fork();
@@ -2465,9 +2463,6 @@ static void run_threads(struct sk_out *sk_out)
24652463
_exit(ret);
24662464
} else if (i == fio_debug_jobno)
24672465
*fio_debug_jobp = pid;
2468-
// freeing previously allocated memory for files
2469-
// this memory freed MUST NOT be shared between processes, only the pointer itself may be shared within TD
2470-
free(files);
24712466
free(eo);
24722467
free(fd);
24732468
fd = NULL;

0 commit comments

Comments
 (0)