about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);