summaryrefslogtreecommitdiff
path: root/t/t2107-update-index-basic.sh
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2016-03-31 17:35:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-01 10:33:18 -0700
commitf5ff5fb56485979895cff5954e4db1ea4ff4c9f7 (patch)
treeaa810c8328b154a0e38410e6e6c653de4dbbe34b /t/t2107-update-index-basic.sh
parentabbrev_sha1_in_line: don't leak memory (diff)
downloadtgif-f5ff5fb56485979895cff5954e4db1ea4ff4c9f7.tar.xz
bundle: don't leak an fd in case of early return
In successful operation `write_pack_data` will close the `bundle_fd`, but when we exit early, we need to take care of the file descriptor as well as the lock file ourselves. The lock file may be deleted at the end of running the program, but we are in library code, so we should not rely on that. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2107-update-index-basic.sh')
0 files changed, 0 insertions, 0 deletions