mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #5787 from samueltardieu/fuzz-fix-fd-leak
fuzz: fix file descriptor leak
This commit is contained in:
commit
b61e859467
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue