neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17
parent 865afe0eb1b5e6485fe0f65472e6635266e393b1
Author: John Keeping <john@keeping.me.uk>
Date:   Sun, 27 Jul 2014 11:56:20 +0100

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 <john@keeping.me.uk>

Diffstat:
Mui-stats.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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; }