diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-27 15:55:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 15:55:44 (GMT) |
commit | 503a3a77c13489f909c1131d6408c2b6a0760a97 (patch) | |
tree | cc05f9c1c25464bee69dcd6434e9069adb72cfd4 /Modules/_abc.c | |
parent | 25086f1eed14b64b3681746569b535d70ff94b1c (diff) | |
download | cpython-503a3a77c13489f909c1131d6408c2b6a0760a97.zip cpython-503a3a77c13489f909c1131d6408c2b6a0760a97.tar.gz cpython-503a3a77c13489f909c1131d6408c2b6a0760a97.tar.bz2 |
[3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Modules/_abc.c')
-rw-r--r-- | Modules/_abc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_abc.c b/Modules/_abc.c index 641d619..b22daa8 100644 --- a/Modules/_abc.c +++ b/Modules/_abc.c @@ -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); |