Skip to content

Commit 5e57f48

Browse files
alvinchow86ionelmc
authored andcommitted
add Py_VISIT(self->factory), see if it helps memory leak
1 parent 7dca9a2 commit 5e57f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lazy_object_proxy/cext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int Proxy_traverse(ProxyObject *self,
136136
{
137137
Py_VISIT(self->dict);
138138
Py_VISIT(self->wrapped);
139-
139+
Py_VISIT(self->factory);
140140
return 0;
141141
}
142142

@@ -146,7 +146,7 @@ static int Proxy_clear(ProxyObject *self)
146146
{
147147
Py_CLEAR(self->dict);
148148
Py_CLEAR(self->wrapped);
149-
149+
Py_VISIT(self->factory);
150150
return 0;
151151
}
152152

0 commit comments

Comments
 (0)