From: Jason Ish Date: Thu, 10 Aug 2023 17:31:44 +0000 (-0600) Subject: eve: fix double free of sensor-name on error X-Git-Tag: suricata-7.0.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb8cca825bdea67cd765b0df3525cc57ebe0f83;p=thirdparty%2Fsuricata.git 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 --- 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);