Merge branch 'ps/leakfixes-more'
commit3997614c249b4b475d07c00556446d8b698d1a49
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Jul 2024 21:53:10 +0000 (8 14:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Jul 2024 21:53:10 +0000 (8 14:53 -0700)
treefc0d71d047b303ec2b25fd0711069e9ba4751dd9
parentecf7fc600a5218c9ee3863ee70d5a6e312164f30
parentfbf7a46d881429ef5495af7bbf3a6c3dacbf80b3
Merge branch 'ps/leakfixes-more'

More memory leaks have been plugged.

* ps/leakfixes-more: (29 commits)
  builtin/blame: fix leaking ignore revs files
  builtin/blame: fix leaking prefixed paths
  blame: fix leaking data for blame scoreboards
  line-range: plug leaking find functions
  merge: fix leaking merge bases
  builtin/merge: fix leaking `struct cmdnames` in `get_strategy()`
  sequencer: fix memory leaks in `make_script_with_merges()`
  builtin/clone: plug leaking HEAD ref in `wanted_peer_refs()`
  apply: fix leaking string in `match_fragment()`
  sequencer: fix leaking string buffer in `commit_staged_changes()`
  commit: fix leaking parents when calling `commit_tree_extended()`
  config: fix leaking "core.notesref" variable
  rerere: fix various trivial leaks
  builtin/stash: fix leak in `show_stash()`
  revision: free diff options
  builtin/log: fix leaking commit list in git-cherry(1)
  merge-recursive: fix memory leak when finalizing merge
  builtin/merge-recursive: fix leaking object ID bases
  builtin/difftool: plug memory leaks in `run_dir_diff()`
  object-name: free leaking object contexts
  ...
35 files changed:
apply.c
apply.h
blame.c
builtin/am.c
builtin/archive.c
builtin/blame.c
builtin/clone.c
builtin/commit.c
builtin/difftool.c
builtin/log.c
builtin/merge.c
builtin/sparse-checkout.c
bundle.c
commit.c
commit.h
config.c
diff-lib.c
diff.c
help.c
list-objects-filter.c
log-tree.c
merge-ort.c
merge-ort.h
merge-recursive.c
notes-merge.c
notes-utils.c
notes.c
object-name.c
rerere.c
revision.c
sequencer.c
t/t4153-am-resume-override-opts.sh
t/t5605-clone-local.sh
t/t7006-pager.sh
t/t7600-merge.sh