cgit

commit 2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17

Author: John Keeping <john@keeping.me.uk>

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>

 ui-stats.c | 1 +


diff --git a/ui-stats.c b/ui-stats.c
index 6f13c32e36efe2beca2e730191f738aad7bd7f11..a264f6ae468df68da389fca429fd5a1ddbdac4eb 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -246,6 +246,7 @@ 	while ((commit = get_revision(&rev)) != NULL) {
 		add_commit(&authors, commit, period);
 		free_commit_buffer(commit);
 		free_commit_list(commit->parents);
+		commit->parents = NULL;
 	}
 	return authors;
 }