about summary refs log tree commit diff
path: root/ui-stats.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2014-07-27 11:56:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-07-28 02:01:47 +0200
commit2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17 (patch)
tree53f92fc07ae2270256bbe9584cafbdf2a7611bc2 /ui-stats.c
parentgit: update to v2.0.3 (diff)
downloadcgit-pink-2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17.tar.gz
cgit-pink-2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17.zip
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 6f13c32..a264f6a 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -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;
 }
placed on static regex_t regex(const char *pattern, int flags) in title.c. 2022-03-24Add The Invisible Life of Addie LaRueJune McEnroe So good, but so long. Reminded me of The Ten Thousand Doors of January at the beginning, and more of that N. K. Jemisin series about gods later. I like this interacting with gods and becoming something like one sort of thing. God, it took me a whole month (more?) to read and this is only my third book of the year :( I need some more novellas to read, but the other books I have from the library currently are also thick. 2022-03-22Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this approach doesn't work anymore. Moved to <https://git.causal.agency/jorts/tree/wcwidth> and compiled into <https://git.causal.agency/jorts/tree/ncurses>. 2022-03-16Remove -j4 from ./PlanJune McEnroe Plan learned to set this automatically! 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe