Skip to content

Commit 2e5d7eb

Browse files
committed
Now using Highs::closeLogFile() in ~Highs()
1 parent f65b89e commit 2e5d7eb

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

highs/Highs.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,7 @@ const char* highsGithash();
4242
class Highs {
4343
public:
4444
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-
}
45+
virtual ~Highs() { this->closeLogFile(); }
5446

5547
/**
5648
* @brief Return the version as a string

0 commit comments

Comments
 (0)