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; }