shortlog: release strbuf after use in insert_one_record()

Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Rene Scharfe committed Aug 30, 2017 at 20:00 UTC 557d3185ee22ec44bb6965467b14a76d9c33e571
1 file changed +1
builtin/shortlog.c
+1
@@ -72,6 +72,7 @@ static void insert_one_record(struct shortlog *log,
72 strbuf_addf(&namemailbuf, " <%.*s>", (int)maillen, mailbuf);
73
74 item = string_list_insert(&log->list, namemailbuf.buf);
75 + strbuf_release(&namemailbuf);
76
77 if (log->summary)
78 item->util = (void *)(UTIL_TO_INT(item) + 1);