]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/coverity-fixes'
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Jul 2026 06:05:47 +0000 (23:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jul 2026 06:05:47 +0000 (23:05 -0700)
Various resource leaks, invalid file descriptor closures, and process
handle ownership issues flagged by Coverity have been fixed.

* js/coverity-fixes:
  mingw: make `exit_process()` own the process handle on all paths
  fsmonitor: plug token-data leak on early daemon-startup failures
  reftable/table: release filter on error path
  imap-send: avoid leaking the IMAP upload buffer
  worktree: fix resource leaks when branch creation fails
  submodule: fix cwd leak in `get_superproject_working_tree()`
  dir: free allocations on parse-error paths in `read_one_dir()`
  line-log: avoid redundant copy that leaks in process_ranges
  run-command: avoid `close(-1)` in `start_command()` error paths
  download_https_uri_to_file(): do not leak fd upon failure
  loose: avoid closing invalid fd on error path
  load_one_loose_object_map(): fix resource leak

1  2 
compat/mingw.c
submodule.c

diff --cc compat/mingw.c
Simple merge
diff --cc submodule.c
Simple merge