Browse Source

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>
maint
Rene Scharfe 7 years ago committed by Junio C Hamano
parent
commit
5a612017eb
  1. 1
      diff.c

1
diff.c

@ -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);
strbuf_release(&out);
}

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

Loading…
Cancel
Save