mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
This reverts commit662dd29456
. The root issue was fixed by the commitf554237b8e
.
This commit is contained in:
parent
99a0d7e5b3
commit
c336f1c312
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ static void
|
|||
method_dealloc(PyObject *self)
|
||||
{
|
||||
PyMethodObject *im = _PyMethodObject_CAST(self);
|
||||
PyObject_GC_UnTrack(im);
|
||||
_PyObject_GC_UNTRACK(im);
|
||||
if (im->im_weakreflist != NULL)
|
||||
PyObject_ClearWeakRefs((PyObject *)im);
|
||||
Py_DECREF(im->im_func);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue