Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.15
-
None
-
None
Description
$ fgrep cfgf ../BUILD/commons-daemon-1.0.15-src/src/native/unix/native/home.c
FILE *cfgf = fopen(data->cfgf, "r");
if (cfgf == NULL) {
log_debug("Can't open %s\n", data->cfgf);
while ((ret = fgets(buf, 1024, cfgf)) != NULL) {
char *cfgf = NULL;
Suggest add call to fclose.