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.
pull/13035/head
Jeff Lucovsky 7 months ago committed by Victor Julien
parent 33445d01b3
commit d59f5d6db6

@ -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) {

Loading…
Cancel
Save