Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff: release strbuf after use in show_rename_copy()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:42 +0000
(19:49 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:27 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
fa842d8
)
diff --git
a/diff.c
b/diff.c
index 4148ba6980dec41d886a9d4fda7c1bbe1a5b243b..33c65f492dc49469162ae3ece5ab6a002305e5ed 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-5289,6
+5289,7
@@
static void show_rename_copy(struct diff_options *opt, const char *renamecopy,
emit_diff_symbol(opt, DIFF_SYMBOL_SUMMARY,
sb.buf, sb.len, 0);
show_mode_change(opt, p, 0);
+ strbuf_release(&sb);
}
static void diff_summary(struct diff_options *opt, struct diff_filepair *p)