X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/d071f28cfa9a49f3aa6355b17e9d9fa7224ff49f..4c520cefc90b10566fcc8a0b006287494a7770e1:/ui-stats.c diff --git a/ui-stats.c b/ui-stats.c index 09b3625..40ed6c2 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -241,8 +241,7 @@ static struct string_list collect_stats(const struct cgit_period *period) memset(&authors, 0, sizeof(authors)); while ((commit = get_revision(&rev)) != NULL) { add_commit(&authors, commit, period); - free_commit_buffer(the_repository->parsed_objects, commit); - free_commit_list(commit->parents); + release_commit_memory(the_repository->parsed_objects, commit); commit->parents = NULL; } return authors;