We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a414af commit e40659eCopy full SHA for e40659e
1 file changed
cpp/csp/python/PyNode.cpp
@@ -94,7 +94,7 @@ void PyNode::init( PyObjectPtr inputs, PyObjectPtr outputs )
94
#if IS_PRE_PYTHON_3_12
95
PyCodeObject * code = frame -> f_code;
96
#else
97
- PyCodeObject * code = PyGen_GetCode( ( PyGenObject * ) pygen );
+ PyPtr<PyCodeObject> code = PyPtr<PyCodeObject>::own( PyGen_GetCode( ( PyGenObject * ) pygen ) );
98
#endif
99
int localPlusIndex = 0;
100
for( int stackloc = code -> co_argcount; stackloc < code -> co_nlocalsplus; ++stackloc, ++localPlusIndex )
0 commit comments