Skip to content

Commit

Permalink
processor_content_modifier: logs: do not remove object on type excepc…
Browse files Browse the repository at this point in the history
…ion (CID 507615)

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 27, 2024
1 parent bcf1b90 commit 39abbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/processor_content_modifier/cm_logs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 39abbdf

Please sign in to comment.