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>
Šī revīzija ir iekļauta:
John Keeping 2014-07-27 11:56:20 +01:00 revīziju iesūtīja Jason A. Donenfeld
vecāks 865afe0eb1
revīzija 2eea471a78

Parādīt failu

@ -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;
}