Browse Source

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>
maint
Rene Scharfe 8 years ago committed by Junio C Hamano
parent
commit
557d3185ee
  1. 1
      builtin/shortlog.c

1
builtin/shortlog.c

@ -72,6 +72,7 @@ static void insert_one_record(struct shortlog *log, @@ -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…
Cancel
Save