]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-stats.c
Revert "git: use xz compressed archive for download"
[cgit.git] / ui-stats.c
index bc273088a4ee2a34daf9da2a33b5578c2255740a..a264f6ae468df68da389fca429fd5a1ddbdac4eb 100644 (file)
@@ -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;
 }