diff options
author | John Keeping <john@keeping.me.uk> | 2014-07-27 14:56:20 +0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-07-28 04:01:47 +0400 |
commit | 2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17 (patch) | |
tree | 53f92fc07ae2270256bbe9584cafbdf2a7611bc2 /ui-stats.c | |
parent | 865afe0eb1b5e6485fe0f65472e6635266e393b1 (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |