diff options
author | Stefan Beller <sbeller@google.com> | 2016-03-31 17:35:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-01 10:33:18 -0700 |
commit | f5ff5fb56485979895cff5954e4db1ea4ff4c9f7 (patch) | |
tree | aa810c8328b154a0e38410e6e6c653de4dbbe34b /Documentation/RelNotes/1.5.2.txt | |
parent | abbrev_sha1_in_line: don't leak memory (diff) | |
download | tgif-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 'Documentation/RelNotes/1.5.2.txt')
0 files changed, 0 insertions, 0 deletions