Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Fixes rdkit#7731

* logic error
  • Loading branch information
greglandrum authored Sep 19, 2024
1 parent bb066c4 commit 165525b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/RDBoost/Wrap/RDBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ struct PyLogStream : std::ostream, std::streambuf {
}

~PyLogStream() {
#if PY_VERSION_HEX < 0x30d0000
if (!_Py_IsFinalizing()) {
#else
if (!Py_IsFinalizing()) {
#endif
Py_XDECREF(logfn);
}
}
Expand Down

0 comments on commit 165525b

Please sign in to comment.