the repository which powers this website
ui-stats.c: set parent pointer to NULL after freeing it
We do this everywhere else, so we should be doing it here as well. Signed-off-by: John Keeping <[email protected]>
John Keeping 2014-07-28
parent 865afe0 · commit 2eea471
-rw-r--r--ui-stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 6f13c32e..a264f6ae 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -246,6 +246,7 @@ static struct string_list collect_stats(struct cgit_period *period)
add_commit(&authors, commit, period);
free_commit_buffer(commit);
free_commit_list(commit->parents);
+ commit->parents = NULL;
}
return authors;
}