diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-11 11:21:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-11 22:15:07 +0200 |
commit | 6e95f4ee0394b7ed8ee42b5d0d22d35b20af16a9 (patch) | |
tree | 3855307f65e6a55fd6e93dc73e66e502ff1a37c4 /sequencer.c | |
parent | builtin/clone: plug leaking HEAD ref in `wanted_peer_refs()` (diff) | |
download | git-6e95f4ee0394b7ed8ee42b5d0d22d35b20af16a9.tar.xz git-6e95f4ee0394b7ed8ee42b5d0d22d35b20af16a9.zip |
sequencer: fix memory leaks in `make_script_with_merges()`
Fix some trivial memory leaks in `make_script_with_merges()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sequencer.c b/sequencer.c index c581061b6d..20807ea7e5 100644 --- a/sequencer.c +++ b/sequencer.c @@ -5951,6 +5951,9 @@ static int make_script_with_merges(struct pretty_print_context *pp, strbuf_release(&oneline); strbuf_release(&buf); + oidset_clear(&interesting); + oidset_clear(&child_seen); + oidset_clear(&shown); oidmap_free(&commit2todo, 1); oidmap_free(&state.commit2label, 1); hashmap_clear_and_free(&state.labels, struct labels_entry, entry); |