Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-18 20:18:45 +0300
committerJunio C Hamano <gitster@pobox.com>2018-06-18 20:18:45 +0300
commit698eb031bb163b797f90168368de1dec02a57127 (patch)
tree767551e41beded6a3b26987954afdf35f82b0ffa /builtin/blame.c
parent23fc55a90c0956908cb595789b460179c062153b (diff)
parent297bdf0791540fb3e98676a59828dd8a331d6615 (diff)
Merge branch 'sb/blame-color'
Leakfix. * sb/blame-color: blame: release string_list after use in parse_color_fields()
Diffstat (limited to 'builtin/blame.c')
-rw-r--r--builtin/blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 4202584f979..3295718841a 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)