diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-30 11:13:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-30 20:23:07 +0200 |
commit | 7f97266ee15d2a30dbc12c9a7f282a9f94b32476 (patch) | |
tree | 215eb4051dcb94c9f51a89589f4c4a7180629329 /pack-bitmap-write.c | |
parent | pseudo-merge: fix leaking strmap keys (diff) | |
download | git-7f97266ee15d2a30dbc12c9a7f282a9f94b32476.tar.xz git-7f97266ee15d2a30dbc12c9a7f282a9f94b32476.zip |
pack-bitmap-write: fix leaking OID array
Fix a leaking OID array in `write_pseudo_merges()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap-write.c')
-rw-r--r-- | pack-bitmap-write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-bitmap-write.c b/pack-bitmap-write.c index 6413dd1731..49758e2525 100644 --- a/pack-bitmap-write.c +++ b/pack-bitmap-write.c @@ -913,6 +913,7 @@ static void write_pseudo_merges(struct bitmap_writer *writer, for (i = 0; i < writer->pseudo_merges_nr; i++) bitmap_free(commits_bitmap[i]); + oid_array_clear(&commits); free(pseudo_merge_ofs); free(commits_bitmap); } |