From 348eda249ebe1d91c832749e8bb3a0e7b7112b43 Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 19:49:42 +0200 Subject: diff: release strbuf after use in show_rename_copy() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/diff.c b/diff.c index 4148ba6980..33c65f492d 100644 --- 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) -- cgit v1.2.3