Skip to content

Commit

Permalink
lex_free closes files
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanohar committed Aug 9, 2024
1 parent 59c25e1 commit dd0b697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sdf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ bool SDF::Read (const char *name)
}

bool ret = Read (fp);
fclose (fp);

// lex_free closes the file

return ret;
}

Expand Down
1 change: 0 additions & 1 deletion spef.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ bool Spef::Read (const char *name)
return false;
}
bool ret = Read (fp);
fclose (fp);
return ret;
}

Expand Down

0 comments on commit dd0b697

Please sign in to comment.