]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert "gh-124715: Fix method_dealloc(): use PyObject_GC_UnTrack() (#133199)" (#133434)
authorVictor Stinner <vstinner@python.org>
Mon, 5 May 2025 15:04:43 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 15:04:43 +0000 (17:04 +0200)
This reverts commit 662dd294563ce86980c640ad67e3d460a72c9cb9.

The root issue was fixed by the
commit f554237b8ef6c60df651ac17eb0ef0c095cef185.

Objects/classobject.c

index b5df3d1a41b5f9b0e87600e0496191afa2a9a3f4..58e1d17977322e6e9ed36342aa73e13fc2fa0969 100644 (file)
@@ -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);