| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ake sure _PyReftracerTrack is called" This broke Py_TRACE_REFS builds. This reverts commit fd545d7.
|
This is easy to fix. _Py_Dealloc() is responsible for _Py_ForgetReference() so we only should include it manually if we're not going to call _Py_Dealloc(). diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 08cbfe46b0d..30b88404bbe 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -445,9 +445,6 @@ static inline void Py_DECREF_MORTAL(const char *filename, int lineno, PyObject *
_Py_DECREF_DecRefTotal();
}
if (--op->ob_refcnt == 0) {
-#ifdef Py_TRACE_REFS
- _Py_ForgetReference(op);
-#endif
_Py_Dealloc(op);
}
} |
Sorry, something went wrong.
|
Thanks Sam |
Sorry, something went wrong.
|
Issue fixed by 684a759, this revert is no longer needed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This reverts commit fd545d7,
which broke Py_TRACE_REFS builds.