Diff options
Diffstat (limited to 'source/ui-blame.c')
-rw-r--r--source/ui-blame.c6
1 file changed, 4 insertions, 2 deletions
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,