/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5c14bd6
)
Merge branch 'rs/fmt-merge-msg-string-leak-fix'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 27 Dec 2017 19:16:23 +0000
(11:16 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 27 Dec 2017 19:16:23 +0000
(11:16 -0800)
Leakfix.
* rs/fmt-merge-msg-string-leak-fix:
fmt-merge-msg: avoid leaking strbuf in shortlog()
builtin/fmt-merge-msg.c
patch
|
blob
|
blame
|
history
diff --git
a/builtin/fmt-merge-msg.c
b/builtin/fmt-merge-msg.c
index
22034f8
..
8e8a15e
100644
(file)
--- a/
builtin/fmt-merge-msg.c
+++ b/
builtin/fmt-merge-msg.c
@@
-377,7
+377,8
@@
static void shortlog(const char *name,
string_list_append(&subjects,
oid_to_hex(&commit->object.oid));
else
- string_list_append(&subjects, strbuf_detach(&sb, NULL));
+ string_list_append_nodup(&subjects,
+ strbuf_detach(&sb, NULL));
}
if (opts->credit_people)