From edb8cca825bdea67cd765b0df3525cc57ebe0f83 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 10 Aug 2023 11:31:44 -0600 Subject: [PATCH] eve: fix double free of sensor-name on error Remove the free of "sensor_name" on error in output-json as this is cleaned up by the LogFileCtx. Bug: #6256 --- src/output-json.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/output-json.c b/src/output-json.c index 62232a4157..d19bc3da15 100644 --- a/src/output-json.c +++ b/src/output-json.c @@ -1206,9 +1206,6 @@ error_exit: if (json_ctx->file_ctx->prefix) { SCFree(json_ctx->file_ctx->prefix); } - if (json_ctx->file_ctx->sensor_name) { - SCFree(json_ctx->file_ctx->sensor_name); - } LogFileFreeCtx(json_ctx->file_ctx); } SCFree(json_ctx);