Skip to content

Commit c0b0238

Browse files
committed
Fix: missing incref in PyObject_SelfIter
1 parent ed778a2 commit c0b0238

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)