We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f65b89e commit 2e5d7ebCopy full SHA for 2e5d7eb
1 file changed
highs/Highs.h
@@ -42,15 +42,7 @@ const char* highsGithash();
42
class Highs {
43
public:
44
Highs();
45
- virtual ~Highs() {
46
- FILE* log_stream = this->options_.log_options.log_stream;
47
- if (log_stream != nullptr) {
48
- assert(log_stream != stdout);
49
- // Flush and close log_stream
50
- fflush(log_stream);
51
- fclose(log_stream);
52
- }
53
+ virtual ~Highs() { this->closeLogFile(); }
54
55
/**
56
* @brief Return the version as a string
0 commit comments