From 814d69e9c3f9349f211ea3ff04abb5d14c28a7ea Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:55:45 -0700 Subject: Free the revision walks' arguments and state --- source/ui-blame.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/ui-blame.c') diff --git a/source/ui-blame.c b/source/ui-blame.c index b07e57d..eef8602 100644 --- a/source/ui-blame.c +++ b/source/ui-blame.c @@ -48,7 +48,8 @@ static void run_blame(struct blame_scoreboard *sb, struct rev_info *revs, strvec_push(&argv, rev); repo_init_revisions(the_repository, revs, NULL); revs->diffopt.flags.allow_textconv = 1; - setup_revisions(argv.nr, argv.v, revs, NULL); + setup_revisions_from_strvec(&argv, revs, NULL); + strvec_clear(&argv); init_scoreboard(sb); sb->revs = revs; sb->repo = the_repository; @@ -242,7 +243,7 @@ static void print_blame_page(const struct object_id *oid, const char *path, enum object_type type; char *buf; size_t size; - struct rev_info revs; + struct rev_info revs = REV_INFO_INIT; struct blame_scoreboard sb; int binary; @@ -315,6 +316,7 @@ cleanup: cgit_print_layout_end(); string_list_clear(&suspect_details, 1); free(buf); + release_revisions(&revs); } static int walk_tree(const struct object_id *oid, struct strbuf *base, -- cgit