Skip to content

Commit 684a759

Browse files
authored
GH-127705: Don't call _Py_ForgetReference before _Py_Dealloc (GH-131508)
1 parent 7ebd71e commit 684a759

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Include/internal/pycore_object.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,6 @@ static inline void Py_DECREF_MORTAL(const char *filename, int lineno, PyObject *
445445
_Py_DECREF_DecRefTotal();
446446
}
447447
if (--op->ob_refcnt == 0) {
448-
#ifdef Py_TRACE_REFS
449-
_Py_ForgetReference(op);
450-
#endif
451448
_Py_Dealloc(op);
452449
}
453450
}

0 commit comments

Comments
 (0)