Skip to content

Commit 150d263

Browse files
committed
[GR-29897] Fix: missing incref in PyObject_SelfIter.
PullRequest: graalpython/2006
2 parents ed778a2 + c0b0238 commit 150d263

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "capi.h"
4242

4343
PyObject* PyObject_SelfIter(PyObject* obj) {
44+
Py_INCREF(obj);
4445
return obj;
4546
}
4647

0 commit comments

Comments
 (0)