diff: release strbuf after use in show_rename_copy()

Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Rene Scharfe committed Aug 30, 2017 at 19:49 UTC 348eda249ebe1d91c832749e8bb3a0e7b7112b43
1 file changed +1
diff.c
+1
@@ -5289,6 +5289,7 @@ static void show_rename_copy(struct diff_options *opt, const char *renamecopy,
5289 emit_diff_symbol(opt, DIFF_SYMBOL_SUMMARY,
5290 sb.buf, sb.len, 0);
5291 show_mode_change(opt, p, 0);
5292 + strbuf_release(&sb);
5293 }
5294
5295 static void diff_summary(struct diff_options *opt, struct diff_filepair *p)