]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper/test-truncate: close file descriptor after truncation
authorHoyoung Lee <lhywkd22@gmail.com>
Tue, 22 Jul 2025 17:41:01 +0000 (17:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jul 2025 21:05:34 +0000 (14:05 -0700)
commit8cc19250b324c90f4283bcad488c8bbc756145c4
treefb8dd0d83756a4f8238d7ded32da74aaf2483214
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77
t/helper/test-truncate: close file descriptor after truncation

Fix a resource leak where the file descriptor was not closed after
truncating a file in t/helper/test-truncate.c.

Signed-off-by: Hoyoung Lee <lhywkd22@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-truncate.c