summaryrefslogtreecommitdiffstats
path: root/pack-bitmap-write.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-30 11:13:58 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-30 20:23:07 +0200
commit7f97266ee15d2a30dbc12c9a7f282a9f94b32476 (patch)
tree215eb4051dcb94c9f51a89589f4c4a7180629329 /pack-bitmap-write.c
parentpseudo-merge: fix leaking strmap keys (diff)
downloadgit-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.c1
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);
}