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>
This commit is contained in:
Rene Scharfe 2017-08-30 20:00:30 +02:00 committed by Junio C Hamano
parent ea8e029785
commit 557d3185ee

View File

@ -72,6 +72,7 @@ static void insert_one_record(struct shortlog *log,
strbuf_addf(&namemailbuf, " <%.*s>", (int)maillen, mailbuf);
item = string_list_insert(&log->list, namemailbuf.buf);
strbuf_release(&namemailbuf);
if (log->summary)
item->util = (void *)(UTIL_TO_INT(item) + 1);