提交 5a612017 编写于 作者: R Rene Scharfe 提交者: Junio C Hamano

diff: release strbuf after use in show_stats()

Signed-off-by: NRene Scharfe <l.s.r@web.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 348eda24
...@@ -2583,6 +2583,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) ...@@ -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); 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) static void show_shortstats(struct diffstat_t *data, struct diff_options *options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册