summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-18 10:18:45 -0700
committerJunio C Hamano <gitster@pobox.com>2018-06-18 10:18:45 -0700
commit698eb031bb163b797f90168368de1dec02a57127 (patch)
tree767551e41beded6a3b26987954afdf35f82b0ffa /builtin
parent23fc55a90c0956908cb595789b460179c062153b (diff)
parent297bdf0791540fb3e98676a59828dd8a331d6615 (diff)
downloadgit-698eb031bb163b797f90168368de1dec02a57127.tar.gz
Merge branch 'sb/blame-color'
Leakfix. * sb/blame-color: blame: release string_list after use in parse_color_fields()
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 4202584f97..3295718841 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)