From 046a39854f1440e621f51feb69d930273c2f831d Mon Sep 17 00:00:00 2001 From: Jonathan Santis Date: Mon, 28 Oct 2024 11:04:11 +0100 Subject: [PATCH] add fclose --- config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/config.c b/config.c index 517bd6e..12818a7 100644 --- a/config.c +++ b/config.c @@ -107,6 +107,7 @@ int loadConfig(char *str_file, char **str_entry,char **host,int *intervall,int s { fprintf(stderr,"error opening file[%s]\n",str_file); } + fclose(f_config); printf("Done reading config file\n"); return 0; }