summaryrefslogtreecommitdiffstats
path: root/revision.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-20 14:39:30 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-21 00:23:40 +0100
commit65a1b7e2bdbdff523f8d55e0036bfad72467bfc8 (patch)
tree7fe0fed86411935b4f431472a4bc7f78af571356 /revision.c
parentMerge branch 'ps/leakfixes-part-9' into ps/leakfixes-part-10 (diff)
downloadgit-65a1b7e2bdbdff523f8d55e0036bfad72467bfc8.tar.xz
git-65a1b7e2bdbdff523f8d55e0036bfad72467bfc8.zip
builtin/blame: fix leaking blame entries with `--incremental`
When passing `--incremental` to git-blame(1) we exit early by jumping to the `cleanup` label. But some of the cleanups we perform are handled between the `goto` and its label, and thus we leak the data. Move the cleanups after the `cleanup` label. While at it, move the logic to free the scoreboard's `final_buf` into `cleanup_scoreboard()` and drop its `const` declaration. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
0 files changed, 0 insertions, 0 deletions