diff --git a/src/fluent-bit.c b/src/fluent-bit.c index 6e41b8619b3..d35e034ed20 100644 --- a/src/fluent-bit.c +++ b/src/fluent-bit.c @@ -1344,6 +1344,7 @@ int flb_main(int argc, char **argv) if (config->dry_run == FLB_TRUE) { fprintf(stderr, "configuration test is successful\n"); + flb_init_env(); flb_cf_destroy(cf_opts); flb_destroy(ctx); exit(EXIT_SUCCESS);