]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-stats.c
ui-stats.c: set parent pointer to NULL after freeing it
[ps-cgit] / ui-stats.c
index 6f13c32e36efe2beca2e730191f738aad7bd7f11..a264f6ae468df68da389fca429fd5a1ddbdac4eb 100644 (file)
@@ -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);
                add_commit(&authors, commit, period);
                free_commit_buffer(commit);
                free_commit_list(commit->parents);
+               commit->parents = NULL;
        }
        return authors;
 }
        }
        return authors;
 }