summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-18 17:18:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-18 17:18:45 (GMT)
commit698eb031bb163b797f90168368de1dec02a57127 (patch)
tree767551e41beded6a3b26987954afdf35f82b0ffa
parent23fc55a90c0956908cb595789b460179c062153b (diff)
parent297bdf0791540fb3e98676a59828dd8a331d6615 (diff)
downloadgit-698eb031bb163b797f90168368de1dec02a57127.zip
git-698eb031bb163b797f90168368de1dec02a57127.tar.gz
git-698eb031bb163b797f90168368de1dec02a57127.tar.bz2
Merge branch 'sb/blame-color'
Leakfix. * sb/blame-color: blame: release string_list after use in parse_color_fields()
-rw-r--r--builtin/blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 4202584..3295718 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)