diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 31cdc20eb..6e9b42495 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -3551,6 +3551,7 @@ static PyObject* pybullet_getJointStates(PyObject* self, PyObject* args, PyObjec return NULL; } } + Py_DECREF(jointIndicesSeq); return resultListJointState; } }