about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 22:09:35 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 22:09:35 -0400
commit8c7a5077d406fe43ec75d8be372e2ae884f56068 (patch)
tree463e4ebd1088bbe63d05ba033def5ac5c6bb35e4
parentClean up atom.c and fix base URLs (diff)
downloadbubger-8c7a5077d406fe43ec75d8be372e2ae884f56068.tar.gz
bubger-8c7a5077d406fe43ec75d8be372e2ae884f56068.zip
Free order
Oops 2.
Diffstat (limited to '')
-rw-r--r--concat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/concat.c b/concat.c
index 7be35e0..ddeaa90 100644
--- a/concat.c
+++ b/concat.c
@@ -72,6 +72,7 @@ void concatData(
 }
 
 static const char *uidPath(uint32_t uid, const char *type) {
+	static char buf[PATH_MAX + 1];
 	char str[32];
 	snprintf(str, sizeof(str), "%" PRIu32, uid);
 	struct Variable vars[] = {
@@ -79,7 +80,6 @@ static const char *uidPath(uint32_t uid, const char *type) {
 		{ "type", type },
 		{0},
 	};
-	static char buf[PATH_MAX + 1];
 	templateBuffer(buf, sizeof(buf), PATH_UID, vars, escapePath);
 	return buf;
 }
@@ -285,6 +285,7 @@ void concatIndex(struct List threads, const struct Envelope *envelopes) {
 		error = htmlIndexThread(file, envelope, thread);
 		if (error) err(EX_IOERR, "%s", path);
 	}
+	free(order);
 
 	error = htmlIndexClose(file) || fclose(file);
 	if (error) err(EX_IOERR, "%s", path);