mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (#95325)
This commit is contained in:
parent
2833f3798d
commit
f40bc7fa49
8 changed files with 18 additions and 2 deletions
|
|
@ -63,6 +63,7 @@ abc_data_clear(_abc_data *self)
|
|||
static void
|
||||
abc_data_dealloc(_abc_data *self)
|
||||
{
|
||||
PyObject_GC_UnTrack(self);
|
||||
PyTypeObject *tp = Py_TYPE(self);
|
||||
(void)abc_data_clear(self);
|
||||
tp->tp_free(self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue