Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)

This commit is contained in:
Pablo Galindo 2019-06-02 21:52:49 +01:00 committed by GitHub
parent c0295dba25
commit 3caf4de6f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,7 @@ structseq_dealloc(PyStructSequence *obj)
{
Py_ssize_t i, size;
PyTypeObject *tp;
PyObject_GC_UnTrack(obj);
tp = (PyTypeObject *) Py_TYPE(obj);
size = REAL_SIZE(obj);