Py_DECREF
seems to be missing in Java_jep_python_PyObject_setAttr
#538
Labels
Py_DECREF
seems to be missing in Java_jep_python_PyObject_setAttr
#538
Describe the bug
Py_DECREF
seems to be missing inJava_jep_python_PyObject_setAttr
, witch will cause memory leak when usingsetAttr
of PyObject.To Reproduce
Output:
So only
obj1
was deleted, whileobj2
leaked.Expected behavior
Output:
Both obj1 and obj2 should be deleted.
The text was updated successfully, but these errors were encountered: