Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-04-01 03:35:45 +0300
committerJunio C Hamano <gitster@pobox.com>2016-04-01 20:33:18 +0300
commitf5ff5fb56485979895cff5954e4db1ea4ff4c9f7 (patch)
treeaa810c8328b154a0e38410e6e6c653de4dbbe34b /credential-cache.c
parent6eb6078bf5fd08028b21d80b9062a4aed83a2340 (diff)
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 'credential-cache.c')
0 files changed, 0 insertions, 0 deletions