Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Sep 22, 2022
1 parent 88e649a commit 33d97d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edgedb/datatypes/namedtuple.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ namedtuple_dealloc(PyTupleObject *o)
static int
namedtuple_traverse(PyTupleObject *o, visitproc visit, void *arg)
{
Py_ssize_t i;
for (i = Py_SIZE(o); --i >= 0;) {
Py_VISIT(Py_TYPE(o));
for (Py_ssize_t i = Py_SIZE(o); --i >= 0;) {
if (o->ob_item[i] != NULL) {
Py_VISIT(o->ob_item[i]);
}
Expand Down

0 comments on commit 33d97d7

Please sign in to comment.