From cbd03c7ea4c5a74d724b10bf65dbbc2082e061d6 Mon Sep 17 00:00:00 2001 From: KevinWang Date: Fri, 6 Aug 2021 19:39:04 +0800 Subject: [PATCH] output/redis: Fix possible segv --- src/util-log-redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util-log-redis.c b/src/util-log-redis.c index 544bef1545..6814b142ab 100644 --- a/src/util-log-redis.c +++ b/src/util-log-redis.c @@ -210,6 +210,7 @@ static int SCConfLogReopenAsyncRedis(LogFileCtx *log_ctx) if (ctx->ev_base != NULL) { event_base_free(ctx->ev_base); + ctx->ev_base = NULL; } if (ctx->async == NULL) { -- 2.47.2