Skip to content

Commit 37fe0f9

Browse files
committed
config_format: fix possible double fclose
1 parent 09214eb commit 37fe0f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config_format/flb_cf_fluentbit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ static int read_config(struct flb_cf *cf, struct local_ctx *ctx,
736736

737737
if (f) {
738738
fclose(f);
739+
f = NULL;
739740
}
740741

741742
if (indent) {

0 commit comments

Comments
 (0)