From f58b582b743e6f538ef4c7d176e6c68c87aa88b2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 7 Oct 2016 23:17:15 +0200 Subject: ui-stats: fix data corruption This data is allocated in a bigger context. So we should not free it here to prevent data corruption. --- ui-stats.c | 3 --- 1 file changed, 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; } -- cgit v1.2.1