Skip to content

Commit 297bdf0

Browse files
rscharfegitster
authored andcommitted
blame: release string_list after use in parse_color_fields()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0dc95a4 commit 297bdf0

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)