Skip to content

Commit

Permalink
filter: on unloading due to init error, use instance destroy (#3197)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Mar 15, 2021
1 parent 0b84150 commit e312ef1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flb_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ int flb_filter_init_all(struct flb_config *config)
) {
flb_warn("[filter] NO match rule for %s filter instance, unloading.",
ins->name);
mk_list_del(&ins->_head);
flb_free(ins);
flb_filter_instance_destroy(ins);
continue;
}
if (ins->log_level == -1) {
Expand Down

0 comments on commit e312ef1

Please sign in to comment.