aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-05-01 18:59:25 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-05-01 18:59:25 -0400
commit19e6c3c4d2c71cabec79705088581faa1e6352b7 (patch)
treecba0f2b0ba4f20e4458bee02233b5133c0aa6481
parent78861b3edb1c89b97555d75f964a8837af1ebfa7 (diff)
downloadstasis-19e6c3c4d2c71cabec79705088581faa1e6352b7.tar.gz
add braces to globals.tmpdir check
-rw-r--r--src/lib/delivery/delivery_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_init.c b/src/lib/delivery/delivery_init.c
index 8e919af..e2a9e06 100644
--- a/src/lib/delivery/delivery_init.c
+++ b/src/lib/delivery/delivery_init.c
@@ -138,8 +138,9 @@ void delivery_init_dirs_stage1(struct Delivery *ctx) {
path_store(&ctx->storage.tmpdir, PATH_MAX, ctx->storage.root, "tmp");
if (delivery_init_tmpdir(ctx)) {
msg(STASIS_MSG_ERROR | STASIS_MSG_L1, "Set $TMPDIR to a location other than %s\n", globals.tmpdir);
- if (globals.tmpdir)
+ if (globals.tmpdir) {
guard_free(globals.tmpdir);
+ }
exit(1);
}