From: Rene Scharfe Date: Wed, 30 Aug 2017 18:00:30 +0000 (+0200) Subject: shortlog: release strbuf after use in insert_one_record() X-Git-Tag: v2.15.0-rc0~78^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/557d3185ee22ec44bb6965467b14a76d9c33e571?ds=inline;hp=-c shortlog: release strbuf after use in insert_one_record() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 557d3185ee22ec44bb6965467b14a76d9c33e571 diff --git a/builtin/shortlog.c b/builtin/shortlog.c index 43c4799ea9..48af16c681 100644 --- a/builtin/shortlog.c +++ b/builtin/shortlog.c @@ -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);