Skip to content

Commit 5a61201

Browse files
rscharfegitster
authored andcommitted
diff: release strbuf after use in show_stats()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 348eda2 commit 5a61201

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
@@ -2583,6 +2583,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
25832583
}
25842584

25852585
print_stat_summary_inserts_deletes(options, total_files, adds, dels);
2586+
strbuf_release(&out);
25862587
}
25872588

25882589
static void show_shortstats(struct diffstat_t *data, struct diff_options *options)

0 commit comments

Comments
 (0)