From 8c7a5077d406fe43ec75d8be372e2ae884f56068 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 26 Apr 2020 22:09:35 -0400 Subject: Free order Oops 2. --- concat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'concat.c') 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); -- cgit 1.4.1