add fclose
This commit is contained in:
parent
d1618bf066
commit
046a39854f
1
config.c
1
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);
|
fprintf(stderr,"error opening file[%s]\n",str_file);
|
||||||
}
|
}
|
||||||
|
fclose(f_config);
|
||||||
printf("Done reading config file\n");
|
printf("Done reading config file\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user