mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
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>
This commit is contained in:
parent
865afe0eb1
commit
2eea471a78
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user