git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/23] Memory leak fixes (pt.8)
@ 2024-09-30  9:13 Patrick Steinhardt
  2024-09-30  9:13 ` [PATCH 01/23] builtin/annotate: fix leaking args vector Patrick Steinhardt
                   ` (22 more replies)
  0 siblings, 23 replies; 33+ messages in thread
From: Patrick Steinhardt @ 2024-09-30  9:13 UTC (permalink / raw)
  To: git

Hi,

this is the 8th series of memory leak fixes. As usual, it fixes memory
leaks all over the place. Once applied, we're down to 35 test suites
that do not pass with the memory leak sanitizer.

This series is built on top of 3857aae53f (Git 2.47-rc0, 2024-09-25)
with the following two topisc merged into it:

  - ps/leakfixes-part-7 at 12dfc2475c (diffcore-break: fix leaking
    filespecs when merging broken pairs, 2024-09-26).

  - jk/http-leakfixes at f4c768c639 (http-push: clean up local_refs at
    exit, 2024-09-24).

Both of these topics are part of `next`.

Thanks!

Patrick

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

 bloom.c                                    |  8 +--
 branch.c                                   |  8 ++-
 builtin/annotate.c                         | 20 +++++--
 builtin/clone.c                            | 27 +++++++++
 builtin/index-pack.c                       |  7 +--
 builtin/pack-redundant.c                   | 40 +++++++++++--
 builtin/receive-pack.c                     |  5 +-
 builtin/revert.c                           | 17 ++++--
 builtin/send-pack.c                        |  1 +
 builtin/stash.c                            |  4 +-
 diff.c                                     | 22 +++----
 diffcore-break.c                           |  8 +--
 diffcore-pickaxe.c                         |  4 +-
 diffcore-rename.c                          |  3 +-
 diffcore-rotate.c                          |  3 +-
 diffcore.h                                 | 10 ++--
 line-log.c                                 | 69 +++++++++++++---------
 log-tree.c                                 |  4 +-
 merge-ort.c                                |  2 +-
 midx-write.c                               |  5 +-
 pack-bitmap-write.c                        |  9 +++
 pack-bitmap.c                              |  4 +-
 pack-write.c                               | 42 +++++++------
 pack.h                                     |  4 +-
 pseudo-merge.c                             | 23 +++++++-
 pseudo-merge.h                             |  2 +
 read-cache.c                               |  1 +
 remote.c                                   | 15 +++++
 remote.h                                   |  4 +-
 revision.c                                 | 14 ++++-
 scalar.c                                   |  1 +
 shell.c                                    |  6 +-
 submodule-config.c                         | 15 ++++-
 submodule-config.h                         |  3 +
 t/helper/test-partial-clone.c              |  2 +
 t/helper/test-proc-receive.c               |  7 +++
 t/t0410-partial-clone.sh                   |  1 +
 t/t1092-sparse-checkout-compatibility.sh   |  1 +
 t/t3207-branch-submodule.sh                |  1 +
 t/t3427-rebase-subtree.sh                  |  1 +
 t/t3514-cherry-pick-revert-gpg.sh          |  1 +
 t/t3909-stash-pathspec-file.sh             |  1 +
 t/t5323-pack-redundant.sh                  |  1 +
 t/t5327-multi-pack-bitmaps-rev.sh          |  1 +
 t/t5333-pseudo-merge-bitmaps.sh            |  1 +
 t/t5334-incremental-multi-pack-index.sh    |  2 +
 t/t5411-proc-receive-hook.sh               |  1 +
 t/t5545-push-options.sh                    |  1 +
 t/t5730-protocol-v2-bundle-uri-file.sh     |  1 +
 t/t5731-protocol-v2-bundle-uri-git.sh      |  1 +
 t/t5732-protocol-v2-bundle-uri-http.sh     |  1 +
 t/t6012-rev-list-simplify.sh               |  1 +
 t/t6016-rev-list-graph-simplify-history.sh |  1 +
 t/t7003-filter-branch.sh                   |  1 +
 t/t8001-annotate.sh                        |  1 +
 t/t9210-scalar.sh                          |  1 +
 t/t9211-scalar-clone.sh                    |  1 +
 t/t9350-fast-export.sh                     |  1 +
 t/t9400-git-cvsserver-server.sh            |  1 +
 t/t9402-git-cvsserver-refs.sh              |  1 +
 t/t9850-shell.sh                           |  2 +
 wt-status.c                                |  6 +-
 62 files changed, 329 insertions(+), 123 deletions(-)

-- 
2.46.2.852.g229c0bf0e5.dirty


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2024-10-09  7:06 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30  9:13 [PATCH 00/23] Memory leak fixes (pt.8) Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 01/23] builtin/annotate: fix leaking args vector Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 02/23] read-cache: fix leaking hash context in `do_write_index()` Patrick Steinhardt
2024-09-30 14:05   ` Derrick Stolee
2024-09-30  9:13 ` [PATCH 03/23] scalar: fix leaking repositories Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 04/23] shell: fix leaking strings Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 05/23] wt-status: fix leaking buffer with sparse directories Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 06/23] submodule: fix leaking submodule entry list Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 07/23] builtin/stash: fix leaking `pathspec_from_file` Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 08/23] builtin/pack-redundant: fix various memory leaks Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 09/23] builtin/clone: fix leaking repo state when cloning with bundle URIs Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 10/23] t/helper: fix leaking repository in partial-clone helper Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 11/23] builtin/revert: fix leaking `gpg_sign` and `strategy` config Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 12/23] diff: improve lifecycle management of diff queues Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 13/23] line-log: fix several memory leaks Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 14/23] pseudo-merge: fix various " Patrick Steinhardt
2024-09-30 16:21   ` Taylor Blau
2024-09-30  9:13 ` [PATCH 15/23] pseudo-merge: fix leaking strmap keys Patrick Steinhardt
2024-09-30 21:22   ` Taylor Blau
2024-10-07  9:41     ` Patrick Steinhardt
2024-10-08  8:54       ` Jeff King
2024-10-09  7:06         ` Patrick Steinhardt
2024-09-30  9:13 ` [PATCH 16/23] pack-bitmap-write: fix leaking OID array Patrick Steinhardt
2024-09-30 21:22   ` Taylor Blau
2024-09-30  9:14 ` [PATCH 17/23] midx-write: fix leaking buffer Patrick Steinhardt
2024-09-30 21:27   ` Taylor Blau
2024-10-07  9:41     ` Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 18/23] revision: fix memory leaks when rewriting parents Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 19/23] revision: fix leaking saved parents Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 20/23] pack-write: fix return parameter of `write_rev_file_order()` Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 21/23] t/helper: fix leaks in proc-receive helper Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 22/23] remote: fix leaking push reports Patrick Steinhardt
2024-09-30  9:14 ` [PATCH 23/23] builtin/send-pack: fix leaking list of push options Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).