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
pull/9377/head
Jason Ish 2 years ago committed by Victor Julien
parent d4dd53c95f
commit edb8cca825

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

Loading…
Cancel
Save