From 37fe0f9cac14a8e3d281fce669569cf30b44dea2 Mon Sep 17 00:00:00 2001 From: peter15914 <48548636+peter15914@users.noreply.github.com> Date: Sun, 5 Jan 2025 01:43:47 +0500 Subject: [PATCH] config_format: fix possible double fclose --- src/config_format/flb_cf_fluentbit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config_format/flb_cf_fluentbit.c b/src/config_format/flb_cf_fluentbit.c index 1ac967cbfd5..6114ff6f0f4 100644 --- a/src/config_format/flb_cf_fluentbit.c +++ b/src/config_format/flb_cf_fluentbit.c @@ -736,6 +736,7 @@ static int read_config(struct flb_cf *cf, struct local_ctx *ctx, if (f) { fclose(f); + f = NULL; } if (indent) {