fix memory leak in PyBullet.getJointStates, fixes issue #1661

This commit is contained in:
erwincoumans
2018-05-02 13:12:25 -07:00
parent d7e81590b5
commit 790deb2d54

View File

@@ -3551,6 +3551,7 @@ static PyObject* pybullet_getJointStates(PyObject* self, PyObject* args, PyObjec
return NULL; return NULL;
} }
} }
Py_DECREF(jointIndicesSeq);
return resultListJointState; return resultListJointState;
} }
} }