diff --git a/plugins/in_tail/tail_config.c b/plugins/in_tail/tail_config.c index 774c96b45db..a57d1aab2b9 100644 --- a/plugins/in_tail/tail_config.c +++ b/plugins/in_tail/tail_config.c @@ -199,6 +199,8 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *ins, } else { flb_plg_error(ctx->ins, "invalid encoding 'unicode.encoding' value"); + flb_free(ctx); + return NULL; } } #endif