X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/cef27b670a66c9840bb6120260864e4b3a701dc2..6feb1b669b381452c1c2b4723bfd18275ecae350:/ui-stats.c?ds=sidebyside 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;