X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f60ffa143cca61e9729ac71033e1a556cf422871..ecd6b7230c88deb23f880ee1df75ae4b230cf9ec:/ui-stats.c diff --git a/ui-stats.c b/ui-stats.c index bc27308..a264f6a 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -244,8 +244,9 @@ static struct string_list collect_stats(struct cgit_period *period) memset(&authors, 0, sizeof(authors)); while ((commit = get_revision(&rev)) != NULL) { add_commit(&authors, commit, period); - free(commit->buffer); + free_commit_buffer(commit); free_commit_list(commit->parents); + commit->parents = NULL; } return authors; }