This patch series fixes several cases where file descriptors were not properly closed on error paths. The changes affect helper programs and a builtin command, and ensure that system resources are correctly released before returning from the function. Each fix is minimal and follows the existing style of the surrounding code. These changes help improve the robustness of the code by avoiding potential file descriptor leaks. Hoyoung Lee (4): t/helper/test-truncate: close file descriptor after truncation builtin/archive: close file descriptor on dup2() failure t/helper/test-delta: close fd if fstat() fails after open() t/helper/test-delta: close fd if fstat() fails after second open() builtin/archive.c | 1 + t/helper/test-delta.c | 3 +++ t/helper/test-truncate.c | 3 +++ 3 files changed, 7 insertions(+) -- 2.34.1