]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/leakfixes' into ps/leakfixes-more
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Jun 2024 20:08:33 +0000 (13:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Jun 2024 20:08:33 +0000 (13:08 -0700)
commit03b0e7d3a72a4a9be97b742fc3119ebb70ed9731
tree1627f9966e3c187c3b266ece71f79944a8e0a911
parent9eaef5822cd76bbeb53b6479ce0ddaad34ee2b14
parentebdbefa4fe9f618347124b37d44e517e0c6a3e4c
Merge branch 'ps/leakfixes' into ps/leakfixes-more

* ps/leakfixes:
  builtin/mv: fix leaks for submodule gitfile paths
  builtin/mv: refactor to use `struct strvec`
  builtin/mv duplicate string list memory
  builtin/mv: refactor `add_slash()` to always return allocated strings
  strvec: add functions to replace and remove strings
  submodule: fix leaking memory for submodule entries
  commit-reach: fix memory leak in `ahead_behind()`
  builtin/credential: clear credential before exit
  config: plug various memory leaks
  config: clarify memory ownership in `git_config_string()`
  builtin/log: stop using globals for format config
  builtin/log: stop using globals for log config
  convert: refactor code to clarify ownership of check_roundtrip_encoding
  diff: refactor code to clarify memory ownership of prefixes
  config: clarify memory ownership in `git_config_pathname()`
  http: refactor code to clarify memory ownership
  checkout: clarify memory ownership in `unique_tracking_name()`
  strbuf: fix leak when `appendwholeline()` fails with EOF
  transport-helper: fix leaking helper name
16 files changed:
Makefile
attr.c
builtin/blame.c
builtin/config.c
builtin/log.c
builtin/repack.c
builtin/worktree.c
config.c
config.h
fetch-pack.c
fsck.c
remote.c
sequencer.c
setup.c
t/t1350-config-hooks-path.sh
upload-pack.c