diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 19:49:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-07 08:49:27 +0900 |
commit | fa842d843d4ed336cc21ba45d2d13ff83c63b22f (patch) | |
tree | 6555dea375917a2e3b176884bdf8dd6592fcf446 /diff.c | |
parent | f31f1d395131f84acbee14f42af8f702bca14468 (diff) | |
download | git-fa842d843d4ed336cc21ba45d2d13ff83c63b22f.tar.gz |
diff: release strbuf after use in diff_summary()
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |