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