]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/leakfixes-part-8'
authorJunio C Hamano <gitster@pobox.com>
Thu, 10 Oct 2024 21:22:27 +0000 (14:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Oct 2024 21:22:29 +0000 (14:22 -0700)
More leakfixes.

* ps/leakfixes-part-8: (23 commits)
  builtin/send-pack: fix leaking list of push options
  remote: fix leaking push reports
  t/helper: fix leaks in proc-receive helper
  pack-write: fix return parameter of `write_rev_file_order()`
  revision: fix leaking saved parents
  revision: fix memory leaks when rewriting parents
  midx-write: fix leaking buffer
  pack-bitmap-write: fix leaking OID array
  pseudo-merge: fix leaking strmap keys
  pseudo-merge: fix various memory leaks
  line-log: fix several memory leaks
  diff: improve lifecycle management of diff queues
  builtin/revert: fix leaking `gpg_sign` and `strategy` config
  t/helper: fix leaking repository in partial-clone helper
  builtin/clone: fix leaking repo state when cloning with bundle URIs
  builtin/pack-redundant: fix various memory leaks
  builtin/stash: fix leaking `pathspec_from_file`
  submodule: fix leaking submodule entry list
  wt-status: fix leaking buffer with sparse directories
  shell: fix leaking strings
  ...

1  2 
line-log.c
pack-write.c
read-cache.c
scalar.c
t/t1092-sparse-checkout-compatibility.sh
t/t9210-scalar.sh

diff --cc line-log.c
Simple merge
diff --cc pack-write.c
Simple merge
diff --cc read-cache.c
Simple merge
diff --cc scalar.c
index 73b79a5d4c99792673a79808498feb39d531b1c3,ede616ad4f1a9c4c228a94b09a3bf1ba4cdb76c3..ac0cb579d3f00551fc0afe75f724208c367d8dc3
+++ b/scalar.c
@@@ -732,10 -732,8 +732,11 @@@ static int cmd_reconfigure(int argc, co
                        succeeded = 1;
  
                the_repository = old_repo;
+               repo_clear(&r);
  
 +              if (toggle_maintenance(1) >= 0)
 +                      succeeded = 1;
 +
  loop_end:
                if (!succeeded) {
                        res = -1;
Simple merge