Skip to content

Commit f385c65

Browse files
committed
in_tail: Treat as an error when unsupported encoding is specified
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent c3334a7 commit f385c65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/in_tail/tail_config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *ins,
199199
}
200200
else {
201201
flb_plg_error(ctx->ins, "invalid encoding 'unicode.encoding' value");
202+
flb_free(ctx);
203+
return NULL;
202204
}
203205
}
204206
#endif

0 commit comments

Comments
 (0)