Skip to content

Commit 698eb03

Browse files
committed
Merge branch 'sb/blame-color'
Leakfix. * sb/blame-color: blame: release string_list after use in parse_color_fields()
2 parents 23fc55a + 297bdf0 commit 698eb03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ static void parse_color_fields(const char *s)
411411
die (_("must end with a color"));
412412

413413
colorfield[colorfield_nr].hop = TIME_MAX;
414+
string_list_clear(&l, 0);
414415
}
415416

416417
static void setup_default_color_by_age(void)

0 commit comments

Comments
 (0)