Skip to content

Commit 348eda2

Browse files
rscharfegitster
authored andcommitted
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>
1 parent fa842d8 commit 348eda2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5289,6 +5289,7 @@ static void show_rename_copy(struct diff_options *opt, const char *renamecopy,
52895289
emit_diff_symbol(opt, DIFF_SYMBOL_SUMMARY,
52905290
sb.buf, sb.len, 0);
52915291
show_mode_change(opt, p, 0);
5292+
strbuf_release(&sb);
52925293
}
52935294

52945295
static void diff_summary(struct diff_options *opt, struct diff_filepair *p)

0 commit comments

Comments
 (0)