]> granicus.if.org Git - python/commitdiff
Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)
authorPablo Galindo <Pablogsal@gmail.com>
Sun, 2 Jun 2019 20:52:49 +0000 (21:52 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2019 20:52:49 +0000 (21:52 +0100)
Objects/structseq.c

index 3d857f734be8a3755ac656d515ef37820e172990..2c25e1646a2a67bab3ca7cdd9b193536757447ae 100644 (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);