Skip to content

Commit 4470cea

Browse files
committed
Add missing parent visit to xmlparse_traverse
Kudos to @picnixz
1 parent a6f5520 commit 4470cea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/pyexpat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,7 @@ xmlparse_traverse(PyObject *op, visitproc visit, void *arg)
15261526
for (size_t i = 0; handler_info[i].name != NULL; i++) {
15271527
Py_VISIT(self->handlers[i]);
15281528
}
1529+
Py_VISIT(self->parent);
15291530
Py_VISIT(Py_TYPE(op));
15301531
return 0;
15311532
}

0 commit comments

Comments
 (0)