Skip to content

Commit

Permalink
input: release instance when init failed and fix typo (fluent#3577)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and Shikugawa committed Sep 29, 2021
1 parent 44d4664 commit 61330c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ int flb_input_instance_init(struct flb_input_instance *ins,
*/
config_map = flb_config_map_create(config, p->config_map);
if (!config_map) {
flb_error("[filter] error loading config map for '%s' plugin",
flb_error("[input] error loading config map for '%s' plugin",
p->name);
flb_input_instance_destroy(ins);
return -1;
}
ins->config_map = config_map;
Expand Down

0 comments on commit 61330c4

Please sign in to comment.