diff options
author | Christian Hesse <mail@eworm.de> | 2016-10-07 23:17:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-07 23:18:06 +0200 |
commit | f58b582b743e6f538ef4c7d176e6c68c87aa88b2 (patch) | |
tree | 5642e50a6e55c1ca6dcfb77a507825a6772a834f /ui-stats.c | |
parent | 3567207e54ea684790ca8dbddfef41104813994f (diff) | |
download | cgit-f58b582b743e6f538ef4c7d176e6c68c87aa88b2.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.
Diffstat (limited to 'ui-stats.c')
-rw-r--r-- | ui-stats.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; } |