git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f31f1d3
)
diff: release strbuf after use in diff_summary()
author
Rene Scharfe
<redacted>
Wed, 30 Aug 2017 17:49:41 +0000
(19:49 +0200)
committer
Junio C Hamano
<redacted>
Wed, 6 Sep 2017 23:49:27 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff.c
patch
|
blob
|
history
diff --git
a/diff.c
b/diff.c
index 3d3e553a98bc4fd83d2f79515056c4116086b5df..4148ba6980dec41d886a9d4fda7c1bbe1a5b243b 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-5314,6
+5314,7
@@
static void diff_summary(struct diff_options *opt, struct diff_filepair *p)
strbuf_addf(&sb, " (%d%%)\n", similarity_index(p));
emit_diff_symbol(opt, DIFF_SYMBOL_SUMMARY,
sb.buf, sb.len, 0);
+ strbuf_release(&sb);
}
show_mode_change(opt, p, !p->score);
break;
git clone https://git.99rst.org/PROJECT