summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-06-09 13:26:53 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-14 08:59:36 -0700
commit297bdf0791540fb3e98676a59828dd8a331d6615 (patch)
tree615f5b11b698c7b69a00f63ce9807d0512ca0f57 /builtin
parentbuiltin/blame: add new coloring scheme config (diff)
downloadtgif-297bdf0791540fb3e98676a59828dd8a331d6615.tar.xz
blame: release string_list after use in parse_color_fields()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index f95aac7468..dc7870a561 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -411,6 +411,7 @@ static void parse_color_fields(const char *s)
die (_("must end with a color"));
colorfield[colorfield_nr].hop = TIME_MAX;
+ string_list_clear(&l, 0);
}
static void setup_default_color_by_age(void)