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>

Rene Scharfe committed Aug 30, 2017 at 19:49 UTC 5a612017eb7865de10dc21f3d3f8856e8205456e
1 file changed +1
diff.c
+1
@@ -2583,6 +2583,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
2583 }
2584
2585 print_stat_summary_inserts_deletes(options, total_files, adds, dels);
2586 + strbuf_release(&out);
2587 }
2588
2589 static void show_shortstats(struct diffstat_t *data, struct diff_options *options)