Merge branch 'sb/blame-color'
authorJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 17:18:45 +0000 (10:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 17:18:45 +0000 (10:18 -0700)
Leakfix.

* sb/blame-color:
blame: release string_list after use in parse_color_fields()

builtin/blame.c
index 4202584f97922f39f8631e23b01981ed5687b793..3295718841aab1051ee8bdde0b1fc0aa26ae5f00 100644 (file)
@@ -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)