From 39abbdff0ee0dc4f8a7fdf4c3e4a34992a655bbd Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 26 Aug 2024 15:12:27 -0600 Subject: [PATCH] processor_content_modifier: logs: do not remove object on type excepcion (CID 507615) Signed-off-by: Eduardo Silva --- plugins/processor_content_modifier/cm_logs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/processor_content_modifier/cm_logs.c b/plugins/processor_content_modifier/cm_logs.c index 0f20d124bad..278540039b5 100644 --- a/plugins/processor_content_modifier/cm_logs.c +++ b/plugins/processor_content_modifier/cm_logs.c @@ -796,8 +796,8 @@ int cm_logs_process(struct flb_processor_instance *ins, /* the operation on top of the data type is unsupported */ if (obj->variant->type != CFL_VARIANT_KVLIST) { - cfl_object_destroy(obj); - return -1; + flb_plg_error(ctx->ins, "unsupported data type for context"); + return FLB_PROCESSOR_FAILURE; } /* process the action */