Skip to content

Commit

Permalink
processor: Add NUkk check for match
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed May 16, 2023
1 parent 35db259 commit 1284cb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/flb_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,10 @@ static int load_from_config_format_group(struct flb_processor *proc, int type, s
if (pu->unit_type == FLB_PROCESSOR_UNIT_FILTER) {
if (strcmp(pair->key, "match") == 0) {
f_ins = (struct flb_filter_instance *)pu->ctx;
flb_sds_destroy(f_ins->match);
if (f_ins->match != NULL) {
flb_sds_destroy(f_ins->match);
f_ins->match = NULL;
}
}
}

Expand Down

0 comments on commit 1284cb3

Please sign in to comment.