summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.6.6.2.txt
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2019-01-07 17:48:02 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-07 08:57:18 -0800
commit6881925ef5a0a8b1a33e2f4ceec2ce7ad007dc7a (patch)
treef5a475836ac2e266d7e9fdb7c69bb203511739b7 /Documentation/RelNotes/1.6.6.2.txt
parentGit 2.20.1 (diff)
downloadtgif-6881925ef5a0a8b1a33e2f4ceec2ce7ad007dc7a.tar.xz
sha1-file: close fd of empty file in map_sha1_file_1()
map_sha1_file_1() checks if the file it is about to mmap() is empty and errors out in that case and explains the situation in an error message. It leaks the private handle to that empty file, though. Have the function clean up after itself and close the file descriptor before exiting early. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.6.6.2.txt')
0 files changed, 0 insertions, 0 deletions