From d59f5d6db6b0e2fcebca8d0006dff2e007734bb9 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Mon, 14 Apr 2025 16:07:24 -0400 Subject: [PATCH] output/rotate: Remove extra rotation flag register Issue: 3436 Remove duplicate register of the rotation flag. Eventually, this will cause corruption when the file context has been freed and the rotation flag is deregistered. --- src/output-json.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/output-json.c b/src/output-json.c index b1f327580a..ba3692572e 100644 --- a/src/output-json.c +++ b/src/output-json.c @@ -1068,7 +1068,6 @@ static int LogFileTypePrepare( if (SCConfLogOpenGeneric(conf, json_ctx->file_ctx, DEFAULT_LOG_FILENAME, 1) < 0) { return -1; } - OutputRegisterFileRotationFlag(&json_ctx->file_ctx->rotation_flag); } #ifdef HAVE_LIBHIREDIS else if (log_filetype == LOGFILE_TYPE_REDIS) { -- 2.47.2