1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-31 06:17:56 +01:00

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); strbuf_addf(&namemailbuf, " <%.*s>", (int)maillen, mailbuf);
item = string_list_insert(&log->list, namemailbuf.buf); item = string_list_insert(&log->list, namemailbuf.buf);
strbuf_release(&namemailbuf);
if (log->summary) if (log->summary)
item->util = (void *)(UTIL_TO_INT(item) + 1); item->util = (void *)(UTIL_TO_INT(item) + 1);