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:
parent
ea8e029785
commit
557d3185ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user