Skip to content

Commit

Permalink
Resolving CodeSafe warnings for ticket #267 and #268
Browse files Browse the repository at this point in the history
  • Loading branch information
hdbui committed Jun 11, 2019
1 parent 7fe7575 commit 3fa58ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/anon.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ joy_status_e anon_init (const char *pathname, FILE *logfile) {
if (got_input) {
if (anon_subnet_add_from_string(addr) != ok) {
fprintf(anon_info, "error: could not add subnet %s to anon set\n", addr);
fclose(fp);
return failure;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ int config_set_from_file (configuration_t *config, const char *fname) {
linecount++;
if (len > LINEMAX) {
fprintf(info, "error: line too long in file %s\n", fname);
fclose(f);
return failure;
}

Expand Down Expand Up @@ -442,6 +443,7 @@ int config_set_from_file (configuration_t *config, const char *fname) {
}
}
free(line);
fclose(f);
return ok;
}

Expand Down

0 comments on commit 3fa58ab

Please sign in to comment.