diff --git a/fuzz/fuzz_targets/fuzz_common.rs b/fuzz/fuzz_targets/fuzz_common.rs index 0201ffd89c2..f0de0b6052f 100644 --- a/fuzz/fuzz_targets/fuzz_common.rs +++ b/fuzz/fuzz_targets/fuzz_common.rs @@ -149,6 +149,10 @@ where exit_code: -1, }; } + unsafe { + close(original_stdout_fd); + close(original_stderr_fd); + } // Restore the original stdin if it was modified if let Some(fd) = original_stdin_fd {