Skip to content

Commit bd0bd2b

Browse files
committed
config_format: fix possible double fclose
Signed-off-by: peter15914 <[email protected]>
1 parent 09214eb commit bd0bd2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config_format/flb_cf_fluentbit.c

+1
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)