From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:43 +0000 (+0200) Subject: diff: release strbuf after use in show_stats() X-Git-Tag: v2.15.0-rc0~78^2~22 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5a612017eb7865de10dc21f3d3f8856e8205456e diff: release strbuf after use in show_stats() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 33c65f492d..64cdcf2331 100644 --- a/diff.c +++ b/diff.c @@ -2583,6 +2583,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) } print_stat_summary_inserts_deletes(options, total_files, adds, dels); + strbuf_release(&out); } static void show_shortstats(struct diffstat_t *data, struct diff_options *options)