about summary refs log tree commit diff stats
path: root/ui-stats.c
diff options
context:
space:
mode:
authorJohn Keeping2014-07-27 11:56:20 +0100
committerJason A. Donenfeld2014-07-28 02:01:47 +0200
commit2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17 (patch)
tree53f92fc07ae2270256bbe9584cafbdf2a7611bc2 /ui-stats.c
parentgit: update to v2.0.3 (diff)
downloadcgit-2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17.tar.gz
cgit-2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17.zip
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 (limited to 'ui-stats.c')
-rw-r--r--ui-stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-stats.c b/ui-stats.c index 6f13c32..a264f6a 100644 --- a/ui-stats.c +++ b/ui-stats.c
@@ -246,6 +246,7 @@ static struct string_list collect_stats(struct cgit_period *period)
246 add_commit(&authors, commit, period); 246 add_commit(&authors, commit, period);
247 free_commit_buffer(commit); 247 free_commit_buffer(commit);
248 free_commit_list(commit->parents); 248 free_commit_list(commit->parents);
249 commit->parents = NULL;
249 } 250 }
250 return authors; 251 return authors;
251} 252}