Skip to content

Commit 557d318

Browse files
rscharfegitster
authored andcommitted
shortlog: release strbuf after use in insert_one_record()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ea8e029 commit 557d318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/shortlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ static void insert_one_record(struct shortlog *log,
7272
strbuf_addf(&namemailbuf, " <%.*s>", (int)maillen, mailbuf);
7373

7474
item = string_list_insert(&log->list, namemailbuf.buf);
75+
strbuf_release(&namemailbuf);
7576

7677
if (log->summary)
7778
item->util = (void *)(UTIL_TO_INT(item) + 1);

0 commit comments

Comments
 (0)