From f385c65c29bbc985845d8dafcf587a70a3b58655 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Mon, 7 Oct 2024 15:50:34 +0900 Subject: [PATCH] in_tail: Treat as an error when unsupported encoding is specified Signed-off-by: Hiroshi Hatake --- plugins/in_tail/tail_config.c | 2 ++ 1 file changed, 2 insertions(+) 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