diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-30 11:14:03 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-30 11:23:07 -0700 |
| commit | 4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2 (patch) | |
| tree | b7bc3a80016c9ba34d3c33096db0f623c91c4378 /builtin/index-pack.c | |
| parent | midx-write: fix leaking buffer (diff) | |
| download | git-4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2.tar.gz git-4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2.zip | |
revision: fix memory leaks when rewriting parents
Both `rewrite_parents()` and `remove_duplicate_parents()` may end up
dropping some parents from a commit without freeing the respective
`struct commit_list` items. This causes a bunch of memory leaks. Plug
these.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
0 files changed, 0 insertions, 0 deletions
