Skip to content

Commit 05ebbcd

Browse files
markshannonseehwan80
authored andcommitted
pythonGH-127705: Don't call _Py_ForgetReference before _Py_Dealloc (pythonGH-131508)
1 parent 475c7a7 commit 05ebbcd

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)