Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
transport-helper: release strbuf after use in process_connect_service()
[gitweb.git]
/
builtin
/
shortlog.c
diff --git
a/builtin/shortlog.c
b/builtin/shortlog.c
index 43c4799ea9a9d963f9a44be5cd0ee5bc511e73df..48af16c68141b9ec37755f093376c9e6ba8a4385 100644
(file)
--- 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);