summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-10-07 23:17:15 +0200
committerChristian Hesse <mail@eworm.de>2016-10-07 23:18:06 +0200
commitf58b582b743e6f538ef4c7d176e6c68c87aa88b2 (patch)
tree5642e50a6e55c1ca6dcfb77a507825a6772a834f
parent3567207e54ea684790ca8dbddfef41104813994f (diff)
downloadcgit-ch/corruption.tar.gz
ui-stats: fix data corruptionch/corruption
This data is allocated in a bigger context. So we should not free it here to prevent data corruption.
-rw-r--r--ui-stats.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 7acd358..2088077 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -241,9 +241,6 @@ 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(commit);
- free_commit_list(commit->parents);
- commit->parents = NULL;
}
return authors;
}