Merge branch 'ps/leakfixes' into ps/no-writable-strings
commit5529cba09ff89b9762dbfd8f622e897948b60ab7
authorJunio C Hamano <gitster@pobox.com>
Wed, 29 May 2024 16:32:24 +0000 (29 09:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 May 2024 16:32:24 +0000 (29 09:32 -0700)
tree3fad1f1ce36df7d8328a1a3c43a4dd41e37526a8
parent3a57aa566a21e7a510c64881bc6bdff7eb397988
parentebdbefa4fe9f618347124b37d44e517e0c6a3e4c
Merge branch 'ps/leakfixes' into ps/no-writable-strings

* 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
Makefile
builtin/config.c
builtin/log.c
config.c
config.h
fetch-pack.c
sequencer.c