mirror of
https://github.com/git/git.git
synced 2024-10-30 22:07:53 +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:
parent
ea8e029785
commit
557d3185ee
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue