3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

Merge pull request #1613 from corrodedHash/master

Fixed Segfault when failing to load datalog file
This commit is contained in:
Nikolaj Bjorner 2018-05-08 18:55:35 +01:00 committed by GitHub
commit 53976d0ddf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,9 @@ public:
#endif
}
~line_reader() {
fclose(m_file);
if (m_file != nullptr){
fclose(m_file);
}
}
bool operator()() { return m_ok; }