summaryrefslogtreecommitdiffstats
path: root/Modules/xxlimited.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-07-27 15:03:38 (GMT)
committerGitHub <noreply@github.com>2022-07-27 15:03:38 (GMT)
commitf40bc7fa49f8d137f9b38f7a14569e9a9bdbed07 (patch)
tree01f24798d6ac958feac40337a0a877ba60a66b5f /Modules/xxlimited.c
parent2833f3798dc3647e850b303a4d0fa00609a0ae9b (diff)
downloadcpython-f40bc7fa49f8d137f9b38f7a14569e9a9bdbed07.zip
cpython-f40bc7fa49f8d137f9b38f7a14569e9a9bdbed07.tar.gz
cpython-f40bc7fa49f8d137f9b38f7a14569e9a9bdbed07.tar.bz2
gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (#95325)
Diffstat (limited to 'Modules/xxlimited.c')
-rw-r--r--Modules/xxlimited.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c
index 5177ecd..e234504 100644
--- a/Modules/xxlimited.c
+++ b/Modules/xxlimited.c
@@ -138,6 +138,7 @@ Xxo_finalize(PyObject *self_obj)
static void
Xxo_dealloc(PyObject *self)
{
+ PyObject_GC_UnTrack(self);
Xxo_finalize(self);
PyTypeObject *tp = Py_TYPE(self);
freefunc free = PyType_GetSlot(tp, Py_tp_free);