Close file handle after use

master
Peter Nelson 2010-01-26 19:04:06 +00:00
parent 5f285d05de
commit c0223c2c15
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ bool read_config(const char *filename)
}
}
fclose(f);
if (!good) {
std::cerr << "Error(s) in configuration file, stopping." << std::endl;
}