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>
This commit is contained in:
parent
348eda249e
commit
5a612017eb
1
diff.c
1
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);
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user